Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest version of socket.io causes tests to fail on macOS #3857

Open
Chuckv01 opened this issue Jul 25, 2023 · 1 comment
Open

Latest version of socket.io causes tests to fail on macOS #3857

Chuckv01 opened this issue Jul 25, 2023 · 1 comment

Comments

@Chuckv01
Copy link

Chuckv01 commented Jul 25, 2023

Karma does not seem to be working properly with the latest version of socket.io when running on macOS. Tests will always fail with the following output:

Chrome 115.0.0.0 (Mac OS 10.15.7) ERROR
  Some of your tests did a full page reload!
Chrome 115.0.0.0 (Mac OS 10.15.7) ERROR
  Some of your tests did a full page reload!
25 07 2023 13:08:13.224:ERROR [karma-server]: UncaughtException: TypeError: Cannot read properties of null (reading '57590020')
    at Socket.emit (node:events:527:28)
    at Socket.emit (node:domain:475:12)
    at Socket.emitUntyped (/node_modules/socket.io/dist/typed-events.js:69:22)
    at node_modules/socket.io/dist/socket.js:703:39

Overriding the socket.io dependency version to 4.6.1 within package.json fixes the issue:

"overrides": {
  "socket.io": "4.6.1"
}

Suggest one of the following:

  • Pinning socket.io to 4.6.1 here
  • Figuring out if karma needs to be updated to work with socket.io@4.7.1
  • If not an issue in karma, filing a bug with socket.io
@sroucheray
Copy link

sroucheray commented Sep 1, 2023

Saw the same problem on Firefox on ArchLinux and an Angular 12 project with the conjunction of the new socket.io version and the client.clearContext configuration set to false. I had to fix the resolution of socket.io to "socket.io": "~4.6.2" in my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants