небулярная проблема в модулях небулярных типа 'nb-card', 'nb-stripper' - PullRequest
0 голосов
/ 13 апреля 2020

Я использую nebular в angular, nb-карта всегда не работает, он всегда мне это дает. Любой совет, пожалуйста?

ОШИБКА в src / app / kyc / documentverification / documentverification.component. html: 2: 1 - ошибка NG8001: «nb-карта» не является известным элементом: 1. Если ' nb-card 'является компонентом Angular, затем убедитесь, что он является частью этого модуля. 2. Если 'nb-card' является веб-компонентом, добавьте 'CUSTOM_ELEMENTS_SCHEMA' к '@ NgModule.schemas' этого компонента, чтобы подавить это сообщение.

2


src/app/kyc/documentverification/documentverification.component.ts:5:16
  5   templateUrl: './documentverification.component.html',
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error occurs in the template of component DocumentverificationComponent.
src/app/kyc/documentverification/documentverification.component.html:3:5 - error NG8001: 'nb-card-header' is not a known element:
1. If 'nb-card-header' is an Angular component, then verify that it is part of this module.
2. If 'nb-card-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

3     <nb-card-header></nb-card-header>
    ~~~~~~~~~~~~~~~~

src/app/kyc/documentverification/documentverification.component.ts:5:16
  5   templateUrl: './documentverification.component.html',
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error occurs in the template of component DocumentverificationComponent.
src/app/kyc/documentverification/documentverification.component.html:4:1 - error NG8001: 'nb-card-body' is not a known element:
1. If 'nb-card-body' is an Angular component, then verify that it is part of this module.
2. If 'nb-card-body' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

4 <nb-card-body>
~~~~~~~~~~~~~~

src/app/kyc/documentverification/documentverification.component.ts:5:16
  5   templateUrl: './documentverification.component.html',
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Error occurs in the template of component DocumentverificationComponent.

1 Ответ

0 голосов
/ 21 апреля 2020

импорт NbCardModule в модуле, который имеет DocumentVerificationComponent

import { NbCardModule } from 'nebular/themes'
...