angular2-image-zoom icon indicating copy to clipboard operation
angular2-image-zoom copied to clipboard

Anyone get this working with AOT (Ahead of Time) compile?

Open shentyrenty opened this issue 4 years ago • 1 comments

When I build with Angular 9 (ng build), I get the following error message:

ERROR in node_modules/angular2-image-zoom/index.d.ts:4:22 - error NG6002: Appears in the NgModule.imports of PGModule, but could not be resolved to an NgModule class.

This likely means that the library (angular2-image-zoom) which declares ImageZoomModule 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.

I fixed this by turning off AOT compiling in the angular.json file - change the default "aot": true to "aot": false.

My question is has anyone gotten this to work with AOT compiling turned on?

shentyrenty avatar May 19 '20 10:05 shentyrenty

nope.

ashwinnair26 avatar Jun 03 '20 05:06 ashwinnair26