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

后端 未结 11 1321
终归单人心
终归单人心 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 23:01

    According to MDN Object.assign() Browser compatibility IE is not supported.

    You can import the Object.assign polyfill by MDN with npm. (mdn-polyfills)

    Run: npm i mdn-polyfills --save

    Use: import 'mdn-polyfills/Object.assign';

提交回复
热议问题