Greetings, I am just starting out with Angular 17 and I am currently going through the Tour of Heroes course on the official website. Following the tutorial's instructions, I created a new component called 'heroes' after setting up my project. I then added the component selector
<app-heroes></app-heroes>
to app.component.html
However, when attempting to serve the project, I encountered the following error:
[ERROR] NG8001: 'app-heroes' is not a known element:
If 'app-heroes' is an Angular component, please ensure that it is included in the '@Component.imports' of this component.
If 'app-heroes' is a Web Component, add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message. [plugin angular-compiler]
src/app/app.component.html:0:0: 0 │ ╵ ^
The error is occurring within the template of the AppComponent.
src/app/app.component.ts:9:15:
9 │ templateUrl: './app.component.html',
Could someone offer some assistance, please? I have tried running 'ng serve --open' to view the project in my browser, but it does not seem to be working as expected.