spin.js icon indicating copy to clipboard operation
spin.js copied to clipboard

Uncaught SyntaxError: Unexpected token 'export' (at spin.js:82:1)

Open francisjervis opened this issue 2 years ago • 2 comments

I am getting this error immediately on import, which makes the library non-functional.

francisjervis avatar Sep 29 '22 20:09 francisjervis

me too

megahertzon avatar Jan 05 '23 01:01 megahertzon

You should add type="module" when you're loading your script:

<script type="module" src="path/to/spin.js"></script>

mokazemi avatar Jan 07 '24 08:01 mokazemi