fgnass / spin.js

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

spin.js module not recognized #391

Open slferris opened 1 month ago

slferris commented 1 month ago

A novice's problem. I am using javascript and Visual Studio Code and Chrome on macOS . I understand from the spin.js.org homepage it is not necessary to run spin.js through a module bundler. I had trouble doing that using rollback, which I'm not familiar with, so I gave up that approach. But the spin.js.org homepage indicates a module bundle is not necessary, and that a modern browser can access the spin.js code directly. So, I copied the code from the homepage into a module file and named it spin.js and inserted into my index.html file the following: "". But my project doesn't recognize the module file.

Perhaps someone could help with the syntax of using rollup, or help me understand how to make the local spin.js module work. Thanks.