Library build fails with Angular 9
问题 I am trying to migrate this library https://github.com/flauc/angular2-notifications from Angular 2+ to Angular 9. The original error was about the ModuleWithProviders that has become a generic type, so I fixed it. I also had an error described here https://github.com/angular/angular/issues/32352 which i fixed with require('@angular/compiler-cli'); and now I'm facing another error: ../node_modules/@angular/common/common.d.ts:115:22 - error NG6002: Appears in the NgModule.imports of