I am running an Angular 6.03 project in WebStorm 2018.1.4. A number of my component files have a red squiggly line and when I open them up and navigate to them, I see the error:
ng: Component xxx is not included in a module and will not be available inside a template. Consider adding it to a NgModule declaration.
This is really distracting because at any given time, a number of my components have this error. If I erase the 't' at the end of the @Component decorator, wait a second, and then type it back - the error goes away.
I tried other things I found on the Internet, namely setting Settings | Languages & Frameworks | Typescript | TypeScript Language Service - Recompile on Changes to true. I also set the compileOnSave attribute in my tsconfig to true. Neither resolves it.
Can you provide some guidance?