nebular 模块中的 nebular 问题,例如 'nb-card'、'nb-stripper'

nebular issue in the modules of nebular like 'nb-card', 'nb-stripper'

我在angular用nebular,nb卡老是不行,他总是给我这个。 有什么建议吗?

src/app/kyc/documentverification/documentverification.component.html:2:1 中的错误 - 错误 NG8001:'nb-card' 不是已知元素: 1. 如果 'nb-card' 是一个 Angular 组件,则验证它是该模块的一部分。 2. 如果 'nb-card' 是 Web 组件,则将 '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.

在具有 DocumentVerificationComponent

的模块中导入 NbCardModule
import { NbCardModule } from 'nebular/themes'