Uncaught TypeError: Cannot read property 'sid' of undefined socket.io.client

Viewed 1354

I am using socket.io.client in a spfx react app and getting this error while doing the socket connection:

Uncaught TypeError: Cannot read property 'sid' of undefined
2 Answers

"socket.io-client": "^3.0.1" has this issue. it is the latest released version.

On downgrading the version to "socket.io-client": "^2.3.1" the issue got resolved.

Related