-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
create-react-app not working with IE11 in development mode #3034
Comments
Hmm. Would it make sense if we ran the polyfills first? I guess there's some minor chance they could throw, but not sure if that's a good tradeoff. |
One can manually add <script src="//cdn.polyfill.io/v2/polyfill.min.js"></script> to the index.html and that seems to fix the issue, but lit seems like this step shouldn't be necessary. |
@dcp12345678 it's only necessary for development; the application should work fine when built for production. I believe the polyfills should be first in our entry point (or at least before the overlay), what edge cases are you talking about, @gaearon? |
I guess let's just fix the code to use object spread? Babel will use its own helper for this. |
I'll send a PR. |
Apparently, we are already using object spread and Babel transform it to Can you think of any other workaround without changing execution order? |
It seems we need to disable will it be a good workaround? |
Oh I see. Well, let's just depend on |
This should be fixed in 1.0.13. Please verify. https://github.com/facebookincubator/create-react-app/releases/tag/v1.0.13 |
I just verified it and the fix works great. Thanks so much @tharakawj and @Gearon! |
Hi, I'm facing this issue and I'm not sure If my version includes this fix. I saw pointing out to v1.0.13 but when I do npm list -g, I get:
The only way I can overcome this, is by adding the script tag in the index.html pointing to the cdn service - which I really don't like this solution. I tried importing 'core-js/es6' in the top of my index.js but when running, it stills complains about Object.assign() in the react-error-overlay/CodeBlock.js Any hints are helpfull. Thanks. |
As explained in the beginning of the user guide (which you should also see as The version that matters is the I hope this helps! |
@gaearon thank you I was using 1.0.12. I just updated my package.json and installed 1.0.13, so part of my problem is solved, still can't render in IE11. |
Can you please update to the latest version (1.0.16)? Thanks! |
Is this a bug report?
yes
Can you also reproduce the problem with npm 4.x?
Unknown
(Write your answer here.)
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
node -v
:v6.11.2
npm -v
:3.10.10
yarn --version
(if you use Yarn):N/A
npm ls react-scripts
(if you haven’t ejected):react-scripts@1.0.12
Then, specify:
Windows 7
IE 11
Steps to Reproduce
(Write your steps here:)
I am on Windows 7, so these instructions reflect that environment.
Expected Behavior
(Write what you thought would happen.)
I expect not to get an error.
Actual Behavior
Got the error about Object.assign
(Write what happened. Please add screenshots!)
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: