question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compilation error in websocket io-adapter.d.ts

See original GitHub issue

Hi 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
soundarpandiyancommented, Mar 16, 2018

Please install the types for socket.io hopefully the issue will get resolved

npm install --save @types/socket.io
0reactions
lock[bot]commented, Sep 25, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found