You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read properties of undefined (reading 'id')
at new ClusterAdapter (/home/michioxd/backend/node_modules/.pnpm/@[email protected][email protected]/node_modules/@socket.io/cluster-adapter/dist/index.js:61:34)
at new <anonymous> (/home/michioxd/backend/node_modules/.pnpm/@[email protected][email protected]/node_modules/@socket.io/cluster-adapter/dist/index.js:40:16)
at Namespace._initAdapter (/home/michioxd/backend/node_modules/.pnpm/[email protected]/node_modules/socket.io/dist/namespace.js:99:24)
at Server.adapter (/home/michioxd/backend/node_modules/.pnpm/[email protected]/node_modules/socket.io/dist/index.js:188:17)
at file:///home/michioxd/src/server.ts:76:4
at ModuleJob.run (node:internal/modules/esm/module_job:274:25)
at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:644:26)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm trying to set up Socket.IO with cluster support using PM2, following this docs.
Here's my code:
While I try to run my code, it showing this error
Command I used to run in PM2:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions