-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
TS2304: Cannot find name 'WebSocket'. #1746
Comments
@JimmyBjorklund That's strange as I should get the same error on compilation too. That websocket is not the Maybe some types are missing ? try add: |
Having exactly the same issue (link).
|
@Koenkk Do you guys have a suggestion about how I could explicitly make it to return window.Websocket type instead |
5.3.1 is coming, sorry for the inconvenience... |
node_modules/mqtt/build/lib/shared.d.ts:10:14 - error TS2304: Cannot find name 'WebSocket'.
This line seams to be missing
import type { WebSocket } from 'ws';
This issue was introduced in 5.3.0, its not present in 5.2.2
The text was updated successfully, but these errors were encountered: