Skip to content

Moving from 4.1.3 to 4.2.0 -> xmlhttprequest-ssl' relative to engine.io-client error #1494

@hardcodet

Description

@hardcodet

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", {});
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions