Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cannot use import statement outside a module

//Add type=module to your index.js script tag (not just the package script tag)

<script type="module" src="./index.js"></script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #import #statement #module
ADD COMMENT
Topic
Name
3+6 =