I created a new project with create-react-app today. The production build is not running fine on IE11, the console shows following error:
SCRIPT1010: Expected
Here is how I fixed it. Not to forget Mr React "Dan Abramov" helped me in this.
So the issue is by default the application was being rendered on IE7 that is not on only IE IE11/EDGE that support the transpiled build. So I had to mention the meta information to let browser know that the intended browser is IE11/edge. Add this in the head
section of your index.html:
Now as I got, you ay also see some error in console that reads:
SCRIPT5009: 'Set' is undefined
Not to worry, there is a way around that as well: https://reactjs.org/docs/javascript-environment-requirements.html
Here is the issue I discussed with Dan on git: https://github.com/facebook/create-react-app/issues/4255