DEV Community

Discussion on: How to use Socket.io with Next.js, Express and TypeScript (ES6 import instead of require statements)

Collapse
huydhoang profile image
Huy

Good article, just one detail should be fixed:

npm install express socket.io
npm install -D @types/express
Enter fullscreen mode Exit fullscreen mode

Installing socket-io instead of socket.io will give you error. And @types/express should be saved in devDependencies, by convention.