Skip to content

spin.js module not recognized #391

@slferris

Description

@slferris

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions