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

in #js5 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.