fgnass / spin.js

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

Spinner not working since 10 nov 2017 #344

Closed shahrukhx01 closed 6 years ago

shahrukhx01 commented 6 years ago

I'm getting the following error on the console.

Uncaught SyntaxError: Unexpected token export Incident:1654 Uncaught ReferenceError: Spinner is not defined

Please help as we are using SpinJs in production.

Thanks, Shahrukh

KooYH commented 6 years ago

same as me. http://fgnass.github.io/spin.js/spin.min.js this link is broken.

first, changed url to http://spin.js.org/spin.js and then delete line 112 : export { Spinner };

it's temporarily solution

shahrukhx01 commented 6 years ago

yes I already copied the code locally and then did that change, worked for me too. Thanks!

xsynaptic commented 6 years ago

Check the release notes and #343; the project was upgraded to ES6. I'm guessing you should probably stick with the version 2 branch if you're not transpiling your code and bundling modules with Babel/Webpack.

theodorejb commented 6 years ago

I updated the website to clarify that spin.js shouldn't be loaded from a <script> tag directly referencing the official website, as this is likely to break your app whenever a major new version is released.