agm-overlays
agm-overlays copied to clipboard
Angular 9 ng build --prod error
Hi,
I recently updated my app to angular 9 and it works fine with ng serve
, but when I try to build it with ng build --prod
I get the following error: ERROR in node_modules/agm-overlays/AgmOverlays.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of MapPageModule, but could not be resolved to an NgModule class
any idea on how to resolve this issue?
Historically Angular releases a breaking version and it breaks dependencies. And then the package, aka dependency, and then adopters complain it no longer works with their version.
It’s a crazy game we play with Angular.
This package most likely just needs to be built with Angular 9 now
@AckerApple thanks for your open source effort and I do feel your pain. Having said that, the ng team has been releasing ng9 betas for a long time. We have a huge list of dependencies, I had issues with many of them but when I upgraded to the latest version the issues went away. Right now the only dependency that prevents us from building with ng 9 is this project. My team would appreciate your attention to this as soon as feasible with your schedule.
I just bundled my other popular library, angular-file, using Angular 9 with Ivy turned on. It looks like a success but I JUST released it, version 3.0.0, minutes ago.
I will attempt to do the same thing to this library coming soon. I have two other Angular libraries, same thing. So I hear the need, a bit rather busy though.
Success! Someone reported already reported success with my other package upgrade to Angular 9
This package, now version 2.0.0, is built on Angular 9. This version of Angular, 9, sure does build faster and smaller.
Marking issue as ready to close
@AckerApple Could you publish a changelog for 2.0.0?
Naaaaaaa, I don’t use this code in anyway and so I updated just Angular version is all just for y’all
what about an update to angular 10?
We could totally do that. I had a PR on angular-file for someone wanting Angular 10 support enough to make a PR for it and I accepted.
If you’d like to make a PR for this package to support NG10 please help. Otherwise I will get to it relatively soon. One man band here