Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

TypeError: Class constructor WebSocket cannot be invoked without 'new' #3

Open
jbpratt opened this issue Feb 17, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jbpratt
Copy link
Member

jbpratt commented Feb 17, 2020

~/comfybot update-deps vim .env
~/comfybot update-deps npm run build

> [email protected] build /home/jbpratt/comfybot
> bsb -make-world

[2/2] Building src/dotenv.mlast.d
[1/1] Building src/dotenv.cmj
[12/12] Building src/Json_decode.mlast.d
[6/6] Building src/Json.cmj
[6/6] Building src/Fetch.mliast.d
[3/3] Building src/bs_fetch.cmj
[4/4] Building src/WebSocket.mlast.d
[2/2] Building src/ErrorEvent.cmj
[5/5] Building src/ComfyBot.mlast.d
[2/2] Building src/ComfyBot-Comfybot.cmj
~/comfybot update-deps node src/ComfyBot.bs.js
/home/jbpratt/comfybot/src/ComfyBot.bs.js:56
  new require('isomorphic-ws')('wss://chat.strims.gg/ws', {
                              ^

TypeError: Class constructor WebSocket cannot be invoked without 'new'
    at Object.<anonymous> (/home/jbpratt/comfybot/src/ComfyBot.bs.js:56:31)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47
~/comfybot update-deps gs
On branch update-deps
nothing to commit, working tree clean
@jbpratt jbpratt added the bug Something isn't working label Feb 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant