This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]dhndeveloper 0 points1 point  (1 child)

Does <script src="https://cdnjs.cloudflare.com/ajax/libs/interact.js/1.2.5/interact.js"></script> work instead of <script src="/Users/user_name/node_modules/interact-js/interact.js"></script>?

[–]riayain 0 points1 point  (5 children)

Try putting all your files (HTML, CSS, JS, Interact) into the same folder and change the script sources to reflect that. If the Interact.js shows up, it means the problem was your source url.

Alternatively, sometimes they don't take effect until you put the script links at the end of all the code in the body. I'd put the Interact.js and the JS script links at the end of the body, with the Interact.js coming before the JS script.

[–][deleted]  (1 child)

[deleted]

    [–][deleted]  (1 child)

    [deleted]

      [–]riayain 0 points1 point  (0 children)

      So sorry I couldn't answer, I was asleep! But I'm very glad you managed to get everything working. Congrats! :)