You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR in node_modules/mat-table-exporter/lib/mat-table-exporter.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.
#60
Closed
itayperry opened this issue
May 5, 2020
· 6 comments
I got this error immediately after installing the mat-table-exporter:
(I used npm install --save mat-table-exporter)
" ERROR in node_modules/mat-table-exporter/lib/mat-table-exporter.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class."
It also said: " This likely means that the library (mat-table-exporter) which declares MatTableExporterModule 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."
The text was updated successfully, but these errors were encountered:
mat-table-exporter and other ng-material-extension packages are not Ivy compiled however they should be compatible. For the time being you can disable Ivy if it is possible in your case.
Thank you so much for your fast reply! I might need to use Ivy in the near future. Any idea how long it would take for ng-material-extension to be Ivy compiled? If it’s being planned or something.. and thanks again for your answer.
Thank you for the feedback 👍 Actually it is nothing to do with the Ivy in our case. If a library is compiled with Ivy, non-ivy applications can not use it. That's why Angular team does recommend library authers to keep going with the old view-engine untill Angular 10. Because a view-engine compiled library can be used by both ivy and view engine compiled applications.
I couldn't have the chance to reproduce your case yet but it seems somehow ng-material-extensions implies an incompatibility with ngcc (Angular compatibility compiler)
I believe I can resolve this this week before our planned patch release.
Hi, I'm working with
I got this error immediately after installing the
mat-table-exporter
:(I used
npm install --save mat-table-exporter
)" ERROR in node_modules/mat-table-exporter/lib/mat-table-exporter.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class."
It also said: " This likely means that the library (mat-table-exporter) which declares MatTableExporterModule 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."
The text was updated successfully, but these errors were encountered: