Answers for "syntaxerror: cannot use import statement outside a module type script"

19

Cannot use import statement outside a module

<script type="module" src="main.js"></script>
Posted by: Guest on November-11-2020
0

SyntaxError: Cannot use import statement outside a module babel

// add this in package.json
{
  "type": "module"
}
Posted by: Guest on August-24-2021

Code answers related to "syntaxerror: cannot use import statement outside a module type script"

Code answers related to "Javascript"

Browse Popular Code Answers by Language