react-starter-kit icon indicating copy to clipboard operation
react-starter-kit copied to clipboard

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

Open damiangreen opened this issue 8 years ago • 7 comments

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?

damiangreen avatar Aug 14 '18 09:08 damiangreen

I am also having this same issue. Did you ever find a solution?

askurat avatar Oct 04 '18 16:10 askurat

not yet. I've tried a few polyfills, I'll need to revisit this soon when I do more IE11 testing for our initial release

damiangreen avatar Oct 04 '18 16:10 damiangreen

I noticed that this error only occurs in development mode

berikiushi avatar Oct 04 '18 21:10 berikiushi

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

frenzzy avatar Oct 05 '18 07:10 frenzzy

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.

askurat avatar Oct 05 '18 15:10 askurat

Hi, We are using reacct-starter-kit for server side rendering and now I hit the same issue on IE11

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

App not rendering and displaying blank white screen

Any help appreciated

torontodeveloper avatar Apr 11 '19 12:04 torontodeveloper

@damiangreen thank you very much for crating this issue! Unfortunately, we have close it due to inactivity. Feel free to re-open it or join our Discord channel for discussion.

NOTE: The main branch has been updated with React Starter Kit v2, using JAM-style architecture.

ulani avatar May 27 '21 21:05 ulani