代码之家  ›  专栏  ›  技术社区  ›  myroslav

IE11中Angular 4应用程序崩溃

  •  0
  • myroslav  · 技术社区  · 7 年前

    我的 角度4 中的应用程序崩溃 IE11 就在应用程序加载时。

    以下是我得到的错误:

    enter image description here

    下面是IE调试器中的异常链接:

    enter image description here

    你知道为什么会这样吗?

    IE版本: 11.0.9600.19003

    角度版本: 4.3.6

    1 回复  |  直到 7 年前
        1
  •  2
  •   Ryan Huang    7 年前

    因为IE不支持“For_of”

    去polyfill。ts

    1. 取消注释下面的所有“导入”行 /** IE9, IE10 and IE11 requires all of the following polyfills. **/ /** IE10 and IE11 ....*/

    2. npm install --save classlist.js npm install --save web-animations-js

    参考号: Angular and Internet Explorer

    推荐文章