ngx-card icon indicating copy to clipboard operation
ngx-card copied to clipboard

CardModule' does not appear to be an NgModule class

Open SDAdham opened this issue 2 years ago • 2 comments

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

SDAdham avatar Sep 04 '22 09:09 SDAdham

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

markusbkk avatar Dec 29 '22 09:12 markusbkk

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,

markusbkk avatar Dec 29 '22 10:12 markusbkk