Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CardModule' does not appear to be an NgModule class #24

Open
SDAdham opened this issue Sep 4, 2022 · 2 comments
Open

CardModule' does not appear to be an NgModule class #24

SDAdham opened this issue Sep 4, 2022 · 2 comments

Comments

@SDAdham
Copy link

SDAdham commented Sep 4, 2022

Hello,

I am getting the following error on importing the CardModule in imports in one of my modules:

CardModule' does not appear to be an NgModule class.(-996002)
module.d.ts(1, 22): This likely means that the library (ngx-card/ngx-card) which declares CardModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

Environment:

@angular-devkit/architect       0.1400.4
@angular-devkit/build-angular   14.0.4
@angular-devkit/core            14.0.4
@angular-devkit/schematics      13.3.6
@nguniversal/builders           14.0.2
@nguniversal/express-engine     14.0.2
@schematics/angular             14.0.4
rxjs                            7.5.5
typescript                      4.7.4
webpack                         5.73.0

Please advise

@markusbkk
Copy link

Any progress with this? I'm experiencing the same issue with a custom stencil library

@markusbkk
Copy link

I managed to get a bit further ahead by adding this to my Angular consumer project (my custom library remains unchanged)

Inside angular.json, locate buildOptimizer and set it to false, then below it add "aot": false,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants