Skip to content Skip to sidebar Skip to footer

Syntaxerror: Unexpected Identifier 'typeit'. Import Call Expects Exactly One Argument

I am creating my first website, and I am trying to use the type it library. However, whenever I try to import it into my script file, it gives me the above error. This is my code s

Solution 1:

If you are not using any module bundler then you need to add the following tag before your to your html file:

<scriptsrc="/node_modules/typeit/dist/typeit.min.js"></script>

Also, remove the import statement in your script.js file and make sure that typeit.min.js is loaded before your script.js file.

Post a Comment for "Syntaxerror: Unexpected Identifier 'typeit'. Import Call Expects Exactly One Argument"