3

使用“npm install”更新 Angular2 应用程序并使用“npm start”启动服务器后,我收到此错误

Unhandled Promise rejection: Template parse errors:
'ng-template' is not a known element:
1. If 'ng-template' is an Angular component, then verify that it is 
part of this module.
2. If 'ng-template' is a Web Component then add 
"CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component 
to suppress this message. ("[ERROR ->]<ng-template> <div class="mat-
autocomplete-panel" role="listbox" [id]="id" 
[ngClass]="_getClassList()"): MdAutocomplete@0:0 ; Zone: <root> ; 
Task: Promise.then ; Value:

我用谷歌搜索了它,发现在 angular4 模板中用“ng-template”表示。我认为我的一些软件包依赖于 Angular4,但我无法解决这个问题。

这里的任何人都可以帮助我。

4

0 回答 0