Closed ranbuch closed 8 years ago
@ranbuch closing this. Feel free to ask more related questions about polyfills.
This solution will work for sure, it worked for me when I encountered the error: 'Symbol' is undefined in IE . It worked earlier in Chrome and Firefox but IE was throwing this error.It took me few hours to find this solution. I am using the latest React at this time react "react": "^16.5.0" on windows machine.
1. Install babel-polyfill
npm install --save-dev babel-polyfill
In package.json, it should have the following entries
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^8.0.2",
"babel-polyfill": "^6.26.0",
"babel-preset-react": "^6.24.1"
}
2. In index.js, add
import babelPolyfill from 'babel-polyfill';
Problem should get solved
Still getting the issue
Everything works fine in all the browsers including Edge. In IE 11 (and possibly more versions) I'm getting the error: ReferenceError: 'Symbol' is undefined
I haven't changed the gulp and webpack files. is the bable transpiling working or do I have to do something for him to work?
Thank you.