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:

    <script src="/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"