You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: