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.

webpack-hot-middleware's client requires EventSource to work.

See original GitHub issue

In Edge I get this console error: “webpack-hot-middleware’s client requires EventSource to work.”

webpack-hot-middleware's client requires EventSource to work. You should include a polyfill if you want to support this browser: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events#Tools SCRIPT445: SCRIPT445: Object doesn't support this action

in client.js (94,1)

I tried downgrading querystring to 5.1.1 as per this issue

Are there instructions / polyfill already included I can enable?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
askuratcommented, Oct 5, 2018

frenzzy, thanks for the update. I have done what you said but now receive: SCRIPT438: Object doesn't support property or method 'finally'.

It shows this error is coming from eventsource.js.

1reaction
frenzzycommented, Oct 5, 2018

Yes, this is relevant in development mode only. How to fix:

  1. Run yarn add --dev event-source-polyfill
  2. Add import 'event-source-polyfill' as a first line to tools/lib/webpackHotDevClient.js
  3. Done
Read more comments on GitHub >

github_iconTop Results From Across the Web

IE11: webpack-hot-middleware's client requires EventSource ...
Describe the bug IE11 doesn't hot reload as you make changes. To Reproduce Steps to reproduce the behavior: Get setup: git clone ...
Read more >
Error when I tried to upgrade from webpack3 to webpack4
I'm getting this below error when I upgraded my project from webpack 3.x to webpack 4.0.0
Read more >
@webapp-suite/webpack-hot-middleware - npm
Start using @webapp-suite/webpack-hot-middleware in your project by running `npm i @webapp-suite/webpack-hot-middleware`.
Read more >
EventSource polyfill for IE11 gremlins - sage - Roots Discourse
webpack-hot-middleware's client requires EventSource to work. You should include a polyfill if you want to support this browser: ...
Read more >
webpack-hot-middleware | Yarn - Package Manager
Webpack hot reloading using only webpack-dev-middleware. This allows you to add hot reloading into an existing server without webpack-dev-server.
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