Describe the bug
I was toying around with socket.io in codesandbox.io, and experienced a crash pretty much right away. When switching to 4.1.3, the error went away:
ModuleNotFoundError
Could not find module in path: 'xmlhttprequest-ssl' relative to '/node_modules/engine.io-client/lib/transports/index.js'
To Reproduce
- codesandbox.io/
- add a reference to 4.2.0 and initialize a socket -> will crash
- downgrade to 4.1.3 -> workd
Please fill the following code example:
Socket.IO server version: x.y.z
Client (4.2.0)
mport { io, Socket } from "socket.io-client";
import { config } from "./config";
export class SocketClient {
socket: Socket;
constructor() {
this.socket = io("http://localhost:3000", {});
}
}