TypeError: Unable to get property 'ngMetadataName' of undefined or null reference on IE 10

依然范特西╮ 提交于 2019-12-01 14:36:52

I have updated the angular-cli from 6.0.8 to 6.2.3 (Latest) and it solved the above error.

This link github#24339 might be helpful.

Thanks to @Suresh Kumar Ariya

It is a problem with the components that needs to be declared in entryComponents. The angular ~7.2.2 upper version are broken these components.

  1. First of all, I recommend to remove all ^ and ~ to maintaining a stable application version.

  2. The stable version of angular 7 packages is 7.2.2. So put version 7.2.2 for all @angular/package_name on package.json

    "@angular/cli "7.2.2",
    "@angular/compiler "7.2.2",
    "@angular/compiler-cli "7.2.2",
    "@angular/language-service "7.2.2",
    

Upgrade @angular/cli (and associated packages) to version 7.2.9 or higher should fix this.

npm install @angular/cli@latest @angular/compiler@latest @angular/compiler-cli@latest @angular/language-service@latest

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!