Angular Compile Error: NG6001: The class is listed in the declarations of the NgModule ‘AppModule’, but is not a directive, a component, or a pipe July 10, 2023 by Tarik You have to run npm install when creating new components. Hot reload doesn’t seem to be able to add the component.