[Solved] Uncaught SyntaxError: cannot use import statement outside a modulesteemCreated with Sketch.

in js •  3 years ago 

The Uncaught syntaxerror: cannot use import statement outside a module occurs if you have forgotten to add type="module" attribute while loading the script or if you are loading the src file instead of bundled file from the dist folder.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!