I created an angular library using ng generate library. All the file were generated correctly. However when I try to import the library module inside my app module I get the red squiggly error if I import the module from the library name. The project will build and run properly but I would like to fix the annoying error. The error only goes away if I import the module from the exact path.
Class JetpackModule is not an Angular module:
Inspection Info: Reports any symbols that are declared, imported or exported by an Angular module that are not modules, components, directives or pipes or can’t be used in the context of the property.
Another side effect of this error is the component tag squiggly.
Component or directive matching jp-jetpack element is out of the current Angular module's scope.
Inspection Info: Reports tags, which are defined by components or directives out of current scope.