Cannot find module 'canvas-confetti' in 'public/pages/ljsse.js

I am trying to get a simple canvas confetti npm package to work on my site. I have imported it, and my home file has
import confetti from “canvas-confetti” ;
It compiles with no errors, but when previewing, I get the above error… why? It seems to work with other npm packages?

Hi, see the documentation for this package:

Nice one!

I am still getting the same error?

So. I am not sure how you can consume this package, canvas is not supported. Or am I missing something?

First of all, I’ve never actually tied it so I cannot say for sure it’s going to work.
Second, I guess you can use it in a Custom Element file (where you can access the DOM). And only if the site is under your own domain and not under wixsite.com/editorx.com.