WebSocket is not a constructor
Begalov opened this issue · 1 comments
Mooving by https://purplet.crbt.app/docs/getting-started steps stucked at:
λ pnpm dev
test1@1.0.0 dev b:\DEV\discord\test1
purplet dev
warn
warn Report issues to https://github.com/CRBT-Team/purplet/issues
error Uncaught Error (async):
error TypeError: WebSocket is not a constructor
at Gateway.connect
(file:///B:/DEV/discord/test1/node_modules/.pnpm/@purplet+gateway@1.0.1_
4jks5xkzoffynqukgfnae3g7ry/node_modules/@purplet/gateway/dist/index.js:87:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
⠼ Initializing development mode... (dots are still rotating)
Windows 10.0.22621 build 22621
purplet uses global web standards like websocket, but it should be automatically polyfilling these. it seems the polyfill package isnt being loaded in this version.
i'll make sure this is resolved before the next version is published.