X [ERROR] NG8001: ‘app-chess-board’ is not a known element:
-
If ‘app-chess-board’ is an Angular component, then verify that it is part of this module.
-
If ‘app-chess-board’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message. [plugin angular-compiler]
src/app/app.component.html:0:0:
0 │
╵ ^
Error occurs in the template of component AppComponent.
src/app/app.component.ts:5:15:
5 │ templateUrl: './app.component.html',
╵ ~~~~~~~~~~~~~~~~~~~~~~
(https://i.sstatic.net/EgwggzZP.png)]
2
Answers
just import ChessBoardComponent in AppComponent or related module:
In app.module you should add ChessBoardComponent in export array
like this :