The class AppComponent is listed in the declarations of the NgModule AppModule, but is not a directive, a component, or a pipe

Resolving the error The class AppComponent is listed in the declarations of the NgModule AppModule, but is not a directive, a component, or a pipe.

Read more