我在app组件和我的类组件中都导入了MatChips模块,但它仍然显示这个错误:
NG 8001: 'mat-chip-row' is not a known element:
1. If 'mat-chip-row' is an Angular component, then verify that it is part of this module.
2. If 'mat-chip-row' is a Web Component then add 'CUSTOM_ELEMENTS_SHCEMA' to the '@NgModule.schemas' of this component to suppress this message.
62 <mat-chip-row *ngFor=let key of courseLookup" (removed)="removeFormat(key)">
我尝试npm安装,因为我认为这是由于模块没有安装在我的项目,但仍然没有工作的问题。它们都被导入到应用模块和类组件中。我该怎么办?
仅适用于Material版本15或更高版本,请检查您的版本