astrojams1
astrojams1

Reputation: 1591

React app does not work in IE11

When I load my ES6 react app (created using create-react-app) in production (irlmap.com) in IE11 (other browsers work fine), I get the following error: Minified React error #185. I took a screenshot of the console logs, which you can see below. The problems seems to be that Symbol() is undefined. Digging around google, this seems to be a problem with my polyfill? Note that at the entry to my app (index.js), I have the following:

import "babel-polyfill"
import React from 'react'
import ReactDOM from 'react-dom'

Console error in IE11:

enter image description here

Upvotes: 1

Views: 6788

Answers (1)

Akanksha gore
Akanksha gore

Reputation: 608

Include following plugin in your webpack config file.

new webpack.ProvidePlugin({ Promise: 'es6-promise-promise', // works as expected })

Above code resolved the issues for me.

Upvotes: 1

Related Questions