Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocket is not a constructor #102

Open
Begalov opened this issue Nov 16, 2022 · 1 comment
Open

WebSocket is not a constructor #102

Begalov opened this issue Nov 16, 2022 · 1 comment
Labels
bug Something isn't working pkg:purplet

Comments

@Begalov
Copy link

Begalov commented Nov 16, 2022

Mooving by https://purplet.crbt.app/docs/getting-started steps stucked at:

λ pnpm dev

[email protected] dev b:\DEV\discord\test1
purplet dev

warn ⚠️ Purplet v2.0.0-next.18 is beta software! ⚠️
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[email protected]_
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

@paperclover paperclover added bug Something isn't working pkg:purplet labels Nov 16, 2022
@paperclover
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg:purplet
Projects
None yet
Development

No branches or pull requests

2 participants