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 *****

Комментарии • 9

  • @swwitcher8238
    @swwitcher8238 Месяц назад

    Thanks you bro !

  • @pokemonstudies308
    @pokemonstudies308 9 месяцев назад

    Thanks, mate.

  • @shubhamdas7347
    @shubhamdas7347 5 месяцев назад

    Thanks buddy:)

  • @ankushjassal1158
    @ankushjassal1158 Месяц назад

    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.

    • @user-sx8xf3iy9l
      @user-sx8xf3iy9l Месяц назад

      bro I have the same problem idk what the fuck is that

  • @pranavpagare0109
    @pranavpagare0109 6 месяцев назад

    i wann direct solution when i am create new component then i dont wann do it mannully