fgnass / spin.js

A spinning activity indicator
http://spin.js.org
MIT License
9.3k stars 1.02k forks source link

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

Open francisjervis opened 1 year ago

francisjervis commented 1 year ago

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

megahertzon commented 1 year ago

me too

mokazemi commented 6 months ago

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

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