How to solve 'mat-card' is not a known element add 'CUSTOM_ELEMENTS_SCHEMA' in Angular Material
HTML-код
- Опубликовано: 22 авг 2024
- How to solve 'mat-card' is not a known element add 'CUSTOM_ELEMENTS_SCHEMA' in Angular Material. and also fix the following issue in bellow
Error NG8001: 'mat-card' is not a known element:
1. If 'mat-card' is an Angular component, then verify that it is part of this module.
2. If 'mat-card' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
Error NG8001: 'mat-card-header' is not a known element:
1. If 'mat-card-header' is an Angular component, then verify that it is part of this module.
2. If 'mat-card-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
Error NG8001: 'mat-card-title' is not a known element:
1. If 'mat-card-title' is an Angular component, then verify that it is part of this module.
2. If 'mat-card-title' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
Error NG8001: 'mat-card-actions' is not a known element:
1. If 'mat-card-actions' is an Angular component, then verify that it is part of this module.
2. If 'mat-card-actions' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
Thank You For Visiting My Channel.
***** Subscribe & Support *****
Thanks you bro !
You're welcome!
Thanks, mate.
You're welcome!
Thanks buddy:)
You are welcome!
even after adding the same in app.module.ts and other still i am getting error in "If 'mat-icon' is an Angular component, then verify that it is part of this module.
2. If 'mat-icon' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message."
I already restart server several times but still getting same error.
bro I have the same problem idk what the fuck is that
i wann direct solution when i am create new component then i dont wann do it mannully