slate icon indicating copy to clipboard operation
slate copied to clipboard

The connection to https://***.***.*.***:3001/__webpack_hmr was interrupted

Open radmedov opened this issue 5 years ago • 4 comments

Problem

Sometimes, when I press some link it just reloads the page and throwing an error:

The connection to https://...**:3001/__webpack_hmr was interrupted while the page was loading.

Please advise.

Firefox Developer Edition 65.0b6

radmedov avatar Dec 23 '18 01:12 radmedov

Haven't encountered this on my end. @chrisberthe have you hit this ever while developing?

t-kelly avatar Jan 02 '19 15:01 t-kelly

No I haven't encountered this issue. @radmedov, do you know of a way to replicate this on our end and we can look into it? Tbh, I rarely use Firefox during development but perhaps that could be part of it (although I highly doubt it's that).

bertiful avatar Jan 02 '19 19:01 bertiful

I've been experiencing this consistently as well in FireFox and FireFox Development Edition. I'm not sure how to troubleshoot it but it only happens in FireFox.

dungle-scrubs avatar Aug 16 '19 11:08 dungle-scrubs

The workaround: Go to: node_modules/webpack-hot-middleware/client.js and add this function

window.addEventListener("beforeunload", function(event) {
    handleDisconnect();
});

inside

function EventSourceWrapper() {

radmedov avatar Jan 18 '20 01:01 radmedov