Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Uncaught SyntaxError: Cannot use import statement outside a module (at

Open triumphhub opened this issue 2 years ago • 2 comments
trafficstars

Hello Forum,

I downloaded code via npm and am using the following code from this site. `

`

Using this code, I get the following errors Uncaught SyntaxError: Cannot use import statement outside a module (at (index):1:9) (index):9 Uncaught ReferenceError: nestedSortables is not defined at (index):9:21

I am trying to use the "Nested Sortables Example" from this site and expect to see a sortable list.

Thank you for any help

triumphhub avatar Feb 21 '23 21:02 triumphhub

<script type="module" src="main.js"></script>

trasherdk avatar Feb 22 '23 03:02 trasherdk

Thank you trasherdk,

What is the import for if it doesn't work?

triumphhub avatar Feb 23 '23 20:02 triumphhub