problem description
I use < nz-tabset > to do a tab navigation
the environmental background of the problems and what methods you have tried
re-install,Stack Overflow
related codes
<nz-tabset>
<nz-tab nzTitle="Tab 1">
Content of Tab Pane 1
</nz-tab>
<nz-tab nzTitle="Tab 2">
Content of Tab Pane 2
</nz-tab>
<nz-tab nzTitle="Tab 3">
Content of Tab Pane 3
</nz-tab>
</nz-tabset>
error:
core.js:14597 ERROR Error: Uncaught (in promise): Error: Template parse errors:
"nz-tab" is not a known element:
1. If "nz-tab" is an Angular component, then verify that it is part of this module.
2. If "nz-tab" is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the "@NgModule.schemas" of this component to suppress this message. ("<nz-tabset>
[ERROR ->]<nz-tab nzTitle="Tab 1">
Content of Tab Pane 1
</nz-tab>
"): ng:///SystemModule/SystemSetupComponent.html@1:2
"nz-tab" is not a known element:
1. If "nz-tab" is an Angular component, then verify that it is part of this module.
2. If "nz-tab" is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the "@NgModule.schemas" of this component to suppress this message. ("
Content of Tab Pane 1
</nz-tab>
[ERROR ->]<nz-tab nzTitle="Tab 2">
Content of Tab Pane 2
</nz-tab>
"): ng:///SystemModule/SystemSetupComponent.html@4:2
"nz-tab" is not a known element:
1. If "nz-tab" is an Angular component, then verify that it is part of this module.
2. If "nz-tab" is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the "@NgModule.schemas" of this component to suppress this message. ("
Content of Tab Pane 2
</nz-tab>
[ERROR ->]<nz-tab nzTitle="Tab 3">
Content of Tab Pane 3
</nz-tab>
"): ng:///SystemModule/SystemSetupComponent.html@7:2
"nz-tabset" is not a known element:
1. If "nz-tabset" is an Angular component, then verify that it is part of this module.
2. If "nz-tabset" is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the "@NgModule.schemas" of this component to suppress this message. ("[ERROR ->]<nz-tabset>
<nz-tab nzTitle="Tab 1">
Content of Tab Pane 1
"): ng:///SystemModule/SystemSetupComponent.html@0:0
Error: Template parse errors:
"nz-tab" is not a known element:
1. If "nz-tab" is an Angular component, then verify that it is part of this module.
2. If "nz-tab" is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the "@NgModule.schemas" of this component to suppress this message. ("<nz-tabset>
[ERROR ->]<nz-tab nzTitle="Tab 1">
Content of Tab Pane 1
</nz-tab>
"): ng:///SystemModule/SystemSetupComponent.html@1:2
"nz-tab" is not a known element:
1. If "nz-tab" is an Angular component, then verify that it is part of this module.
2. If "nz-tab" is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the "@NgModule.schemas" of this component to suppress this message. ("
Content of Tab Pane 1
</nz-tab>
[ERROR ->]<nz-tab nzTitle="Tab 2">
Content of Tab Pane 2
</nz-tab>
"): ng:///SystemModule/SystemSetupComponent.html@4:2