-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Support developing in IE 9 #5674
Comments
Sorry for hijacking the thread but I'm facing the same problem. Is this a bug report?Yes Environment
Steps to Reproduce
Expected BehaviorThe application should work. No errors should be present in the console and the spinning React logo should be displayed. Actual BehaviorA white screen is displayed and there is an error in the console: For some reason the added polyfills for the older browsers are ignored. Please provide more info how to integrate them properly into a React app or investigate ths issues if the steps are corrent. Thanks in advance! |
Is this during |
Only when executing When the application is built for production, the polyfills are loaded and everything works as expected. |
It is a known limitation that the dev server does not support IE9/11. We're working on adding this. |
@ivoborisov I have also got sucked into this problem recently, and I can't wait the release of 3.0 to develop in IE 9, so I spent hours to fix it locally. This problem is caused by Fix:
|
|
|
Just in case helps someone while a better solution arrives, we found something that works for us for the time being. Basically we have to run the app in non-ES6 environments and unless applying this hack we had to run the app in prod mode all the time, and this means wasting a lot of time.
I know this doesn't look so promising because we are not actually loading any polyfill for Map and Set so we could have problems with third parties relaying on them, but as far as we know this could happen, it helps us running the app in development mode. |
Another workaround I'm currently using is to explicitly set chalk as a dev dependency using an older version. Chalk 1.1.3 is compatible with webpackHotDevClient and runs fine in IE11. |
I solved this using the core-js polyfill library. You can check the details of the solution on this stack overflow answer. |
I'm experiencing this when developing for Opera 12.16 (the world of Smart TV web browsers are based on rather much older browsers than desktops are). Here are the first lines of my
Both my development and production browserslist fields specify When I run
Some guidance to that effect would be very helpful in the Supported Browsers and Features documentation. As for when I run I'm really surprised that, given that the devtools do not respect browser compatibility, EDIT: Solutions in here seem promising: #5336 |
Thanks for your note in #5336, I am going to close this as a duplicate of it. |
I have created a new reactjs project using
create-react-app
and am finding it's not working on IE10 & IE9. I have done a lot of research and it led me to using polyfills, which I have done with many of my other Rails on React app, but I'm finding it not working with this project created viacreate-react-app
.Here's the error:
SCRIPT5009: 'Map' is undefined
I notice this error is related to ES6's new Map() function.
So, here's what I've done in my code in an attempt to make it work:
Polyfill.js:
This isn't working. I'm not sure what else to try. I've tried a lot of other polyfill imports as well and continue to get the same error.
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: