我正在使用ionic@5.0.0和angular@9.1.0
在一个组件中,突然出现此错误
ERROR in src/app/modules/core/attachmentViewer/attachment-viewer.component.html:1:1 - error NG8001: 'ion-header' is not a known element:
1. If 'ion-header' is an Angular component, then verify that it is part of this module.
2. If 'ion-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
1 <ion-header mode="md">
~~~~~~~~~~~~~~~~~~~~~~
src/app/modules/core/attachmentViewer/attachment-viewer.component.ts:9:16
9 templateUrl: './attachment-viewer.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AttachmentViewerComponent.
此错误与其他离子性成分重复出现。
我已经在模块中导入了IonicModule。
我已经尝试通过删除node_modules和package-lock.json
来解决此问题。