I tried to make a small app using peerjs but when I tried to import Peer from "peerjs"
, my code crash with:
Uncaught ReferenceError: assignment to undeclared variable parcelRequire
At http://localhost:8080/_snowpack/pkg/peerjs.js:20
I didn't find anything on internet. And I don't why snowpack is using parcel because I didn't install any plugin I tried to import Peerjs with Skypack but it's same. On the other hand, when I test to import another library, here I tested with canvas-confetti, it work. So I don't know why Snowpack doesn't like Peerjs