question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SockJS-Client version mismatch

See original GitHub issue

If you start the dev server and browse to,

/sockjs-node/iframe.html

You’ll see the fallback for when a browser can’t establish a websocket connection. It references a CDN version of SockJS-Client 1.0.1

<script src="https://cdn.jsdelivr.net/sockjs/1.0.1/sockjs.min.js"></script>

But the chosen SockJS-Client version elsewhere in react-dev-tools is 1.0.3 so it fails with this error,

sockjs.min.js:2 Uncaught Error: Incompatibile SockJS! Main site uses: "1.0.3", the iframe: "1.0.1".s

SockJS-Client 1.0.3 was chosen at https://github.com/facebookincubator/create-react-app/blob/master/packages/react-dev-utils/package.json#L31

If you disable websockets in your browser, or have a proxy that doesn’t handle websockets (like I do), you can reproduce this error.

You could fix this by downgrading the package.json to version 1.0.1, or by using a fork of sockjs-node that matches the version you want by applying this patch https://github.com/holloway/sockjs-node/pull/1/commits/6c1a7b6bd68c5c2d5f4e39e3a8567d7d6dd440ea

Incidentally the current version of SockJS-Client is 1.1.1.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kesuskimcommented, Jan 11, 2017

I experienced the same problem while I set project myself, and I found out downgrading webpack-dev-server will do the job. In my case, I used webpack 1.12.9, webpack-dev-server 1.12.0. Previously I just use latest (both).

1reaction
gaearoncommented, Dec 14, 2016

Could you submit a fix please if you have one in mind?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular4 fullcalendar version mismatch - Stack Overflow
I have reinstalled "ap-angular2-fullcalendar" to version "1.3.1". It's work for me. Command: npm install ap-angular2-fullcalendar@1.3.1.
Read more >
How to handle? WARN RPCManager - client/server version ...
I update the software on the server, and most times the user's browsers have cached an earlier version. Here's what I see in...
Read more >
msreactxp/Lobby - Gitter
[21:02:07] Error: Metadata version mismatch for module ... found version 4, expected 3 ... sock.onmessage @ SockJSClient.js:58 EventTarget.
Read more >
Problems with Kurento Room & KMS - Google Groups
After some investigation, I had to install STUN/TURN server and update our KMS to the latest version. ... You will need to use...
Read more >
Web on Servlet Stack - Spring
It was enabled for use in Spring MVC from version 5.3 and is ... Any return value that does not match any of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found