I am pretty new to Angular and was trying to build a simple chat application, without a backend or anything just trying to learn the framework and build a simple template. But after several hours, I am still getting the same error messages:
✘ [ERROR] NG8001: ‘router-outlet’ is not a known element:
-
If ‘router-outlet’ is an Angular component, then verify that it is part of this module.
-
If ‘router-outlet’ 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:6:15:
6 │ templateUrl: './app.component.html',
╵ ~~~~~~~~~~~~~~~~~~~~~~
I was trying to build two seperate pages, the chat-home (overview of all chats) and the chat-room(page to chat with one selected person where messages get actually sent).
Here is the link to the github:
https://github.com/tostrauss/chat-app
straussi_tobi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.