Coder Social home page Coder Social logo

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. about ng-material-extensions HOT 6 CLOSED

halittalha avatar halittalha commented on May 21, 2024
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.

from ng-material-extensions.

Comments (6)

HalitTalha avatar HalitTalha commented on May 21, 2024 2

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.

from ng-material-extensions.

HalitTalha avatar HalitTalha commented on May 21, 2024 1

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.

from ng-material-extensions.

itayperry avatar itayperry commented on May 21, 2024

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.

from ng-material-extensions.

itayperry avatar itayperry commented on May 21, 2024

So maybe I got it all wrong, perhaps it's truly an ngcc compatibility issue. I wasn't aware of Angular's recommendations for the authors and that

"view-engine compiled library can be used by both ivy and view engine compiled applications."

Thank you for explaining all of this :)
Should I reinstall in a week or two and try it out?

from ng-material-extensions.

HalitTalha avatar HalitTalha commented on May 21, 2024

I finally got the time to check and validate the packages are ivy compatible. If your issue is still there could you send your package.json?

You can take a look at this example project which is in Angular 9.1.3 version as in your case.
https://github.com/HalitTalha/ivy-testing

from ng-material-extensions.

HalitTalha avatar HalitTalha commented on May 21, 2024

Closing due to inactivity.

from ng-material-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.