Closed alexk984 closed 7 months ago
After install this package I have this error when creating websocket:
TypeError: ws_1.WebSocketServer is not a constructor
In this code:
import { WebSocketServer } from 'ws' const ws = new WebSocketServer({ port: 9001 })
I see this difference in yarn.lock file:
How can I fix it?
Is this because the version of ws used in this package is older than yours? Can you give me a tiny example to reproduce the issue? Thanks
ws
After install this package I have this error when creating websocket:
In this code:
I see this difference in yarn.lock file:
How can I fix it?