Angular 2 / 4 / 5 not working in IE11

后端 未结 22 2275
野的像风
野的像风 2020-11-22 11:07

I am trying to figure out why my angular 2 app is stuck on showing Loading... when running in IE 11.

Following someone\'s suggestion, I\'ve tried this plunker, poste

22条回答
  •  一整个雨季
    2020-11-22 12:00

    I tried every solution in this thread as well as bunch from other ones, with no success. What ended up fixing this for me was to update every package in my project, including MAJOR version changes. So:

    1. Run npm outdated
    2. Update package.json with the number shown in the current column from results (this can break your project, be careful)
    3. Run npm install
    4. Made sure I also had the polyfills uncommented as noted in the other answers.

    That's it. I wish I could pinpoint which library was the culprit. The actual error I was getting was "Syntax Error" in vendor.js in Angular 6.

提交回复
热议问题