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

后端 未结 11 1317
终归单人心
终归单人心 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:54

    Angular has dependency on core-js. Thereby you can use Object.assign polyfills from it:

    import "core-js/client/shim"; // or load it before other angular2 & zone.js stuff
    import "zone.js";
    import "reflect-metadata";
    

提交回复
热议问题