Solving `Failed to execute 'importNode' on 'Document'` in Alpine.js

Solving `Cannot read property 'cloneNode' of undefined` in Alpine.js