compilation error in websocket io-adapter.d.ts
See original GitHub issueHi guys, i’m getting compilation error when i try to use websockets. Can you please let me know how to resolve this issue.
node_modules/@nestjs/websockets/adapters/io-adapter.d.ts(2,23): error TS2688: Cannot find type definition file for 'socket.io'.
node_modules/@nestjs/websockets/adapters/io-adapter.d.ts(14,27): error TS2503: Cannot find namespace 'SocketIO'.
node_modules/@nestjs/websockets/adapters/io-adapter.d.ts(16,35): error TS2503: Cannot find namespace 'SocketIO'.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
typescript - @types/socket.io-redis fails on compile as it can't ...
I fixed this by uninstalling the @types/socket.io-redis package.
Read more >Scalable WebSockets with NestJS and Redis - LogRocket Blog
Let's create a Nest module named SocketStateModule and the service that takes care of keeping the state. //socket-state-service.ts @Injectable() ...
Read more >Plug-in seed v0.9.7 generated project can't ... - VMware Flings
Plug-in seed v0.9.7 generated project can't be compiled successfully ... ERROR in D:/lxci-ui/node_modules/rxjs/Subject.d.ts (16,22): Class 'Subject<T>' ...
Read more >feat: 更新WebSocket 优化逻辑 · b36b63277f - ms - yumc.pw
packages/websocket/src/socket.io-adapter/index.ts ... const ERROR_PACKET = { type: "error", data: "parser error" } ... abstract doClose(d: Function).
Read more >Adapter - Gateways | NestJS - A progressive Node.js framework
The WebSockets module is platform-agnostic, hence, you can bring your own ... import { IoAdapter } from '@nestjs/platform-socket.io'; ... ws-adapter.ts.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please install the types for socket.io hopefully the issue will get resolved
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.