library Cannot declare in an NgModule as it's not a part of the current compilation. code example
Example: angluar cannot declare '' in an ngmodule as its not part of the current compilation
// Remove your module from declarations and add it to imports
@NgModule({
declarations: [
SomeComponent,
// SharedModule, <-- remove module from declarations
],
imports: [
SharedModule, // <-- add to imports
],
})
export class YourModule {}