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.

create-react-app not working with IE11 in development mode

See original GitHub issue

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

  1. node -v: v6.11.2

  2. npm -v: 3.10.10

  3. yarn --version (if you use Yarn): N/A

  4. npm ls react-scripts (if you haven’t ejected): react-scripts@1.0.12

Then, specify:

  1. Operating system: Windows 7
  2. Browser and version (if relevant): IE 11

Steps to Reproduce

(Write your steps here:) I am on Windows 7, so these instructions reflect that environment.

  1. create-react-app my-app
  2. cd my-app
  3. npm start
  4. In IE11, navigate to http://localhost:3000
  5. Press F12
  6. Press F5
  7. You will see an error about Object.assign not being defined.

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!) image

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
gaearoncommented, Sep 2, 2017
2reactions
dcp12345678commented, Sep 3, 2017

I just verified it and the fix works great. Thanks so much @tharakawj and @gearon!

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-react-app not working with IE11 in development mode
It works in IE11, but only when it's built. Also I've noticed there is no Promise in console in dev mode, but it's...
Read more >
How do I support IE 11 with Create React App 3.0?
3 Answers 3 · Create your basic application with npx create-react-app [AppName] · Add import 'react-app-polyfill/ie11'; to the VERY top of index.
Read more >
Starter create-react-app with IE11 polyfill import still aborts in ...
Working in: Dev Mode. 1) Do: npm create-react-app my-app. 2) cd my-app. 3) add: import "react-app-polyfill/ie11"; as the new first line in index.js....
Read more >
Create React App IE11 : SCRIPT1002: Syntax Error How to ...
You've been living in a happy Disney land of yours developing a beautiful Single Page Application using Create React App which has been ......
Read more >
How to Upgrade to React 18
To help surface these issues, React 18 introduces a new development-only check to Strict Mode. This new check will automatically unmount and ...
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