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

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

Open
shentyrenty opened this issue May 19, 2020 · 1 comment
Open

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

shentyrenty opened this issue May 19, 2020 · 1 comment

Comments

@shentyrenty
Copy link

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?

@ashwinnair26
Copy link

nope.

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