Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spin.js module not recognized #391

Open
slferris opened this issue Jun 5, 2024 · 0 comments
Open

spin.js module not recognized #391

slferris opened this issue Jun 5, 2024 · 0 comments

Comments

@slferris
Copy link

slferris commented Jun 5, 2024

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: "<script type="module" src="./spin.js"></script>". 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant