Angular2 IE11 Unable to get property 'apply' of undefined or null reference

后端 未结 11 1318
终归单人心
终归单人心 2020-12-07 22:41

I am getting the following error after upgrading my angular2 packages to the following versions:

  • @angular/common\": \"^2.3.1
  • @angular/compiler\": \"^
11条回答
  •  星月不相逢
    2020-12-07 22:52

    If you are using @angular/cli and intend to support IE9-11 you can edit the src/polyfills.ts file to enable appropriate polyfills. The required polyfills are already in the file so all you need to do is un-comment them.

    By default @angular/cli projects target "evergreen" browsers out of the box which means that IE isn't immediately supported, but you can add support by importing polyfills for the features you need.

提交回复
热议问题