PatrickJS / NG6-starter

:ng: An AngularJS Starter repo for AngularJS + ES6 + Webpack
https://angularclass.github.io/NG6-starter
Apache License 2.0
1.91k stars 1.35k forks source link

ReferenceError: 'Symbol' is undefined in IE 11 #114

Closed ranbuch closed 8 years ago

ranbuch commented 8 years ago

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.

ranbuch commented 8 years ago

Solved: https://babeljs.io/docs/usage/polyfill/

fesor commented 8 years ago

@ranbuch closing this. Feel free to ask more related questions about polyfills.

KiranChaudhariJM commented 6 years ago

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

scriptrance commented 6 years ago

Still getting the issue