Library is not compatible with Ivy
See original GitHub issueI installed the latest version of @fullcalendar/angular (5.11.0) in an Angular 13 application. I have an error building the application using ngc and Webpack.
Reproduce the error
I have created a repository with a minimal Angular 13 project to reproduce the issue: https://github.com/AlessandroSomma/fullcalendar-angular-13
Steps to reproduce:
- clone the repository
- run
npm install
- run
npm start
ornpm run build
- see the error
Details
Error logged:
node_modules/@fullcalendar/angular/lib/fullcalendar.module.d.ts:2:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.
This likely means that the library (@fullcalendar/angular) which declares FullCalendarModule 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.
Use ngcc before building will fix the issue but in my situation it would be difficult to use it because of package manager. Also using it in the test project a warning is logged:
Processing legacy "View Engine" libraries:
- @fullcalendar/angular [fesm2015/esm2015] (git+https://github.com/fullcalendar/fullcalendar-angular.git)
- @fullcalendar/angular [esm2015/esm2015] (git+https://github.com/fullcalendar/fullcalendar-angular.git)
- @fullcalendar/angular [main/umd] (git+https://github.com/fullcalendar/fullcalendar-angular.git)
Encourage the library authors to publish an Ivy distribution.
Issue Analytics
- State:
- Created a year ago
- Reactions:10
- Comments:5 (2 by maintainers)
Top Results From Across the Web
not compatible with Angular Ivy - Floyk
This likely means that the library (@***) which declares *** has not been processed correctly by ngcc, or is not compatible with Angular...
Read more >MatToolbar throws error when using it with Angular 9
This likely means that the library (@angular/material/toolbar) which declares MatToolbarModule has not been processed correctly by ngcc, or is ...
Read more >The Angular Ivy guide for library authors - DEV Community
There's currently no plan for when the compatibility compiler will be removed from the framework. Based on the Angular team's recommendations ...
Read more >Upcoming improvements to Angular library distribution
Developers can use all these libraries in Ivy applications and libraries thanks to the compatibility compiler, but not vice versa — View ...
Read more >Understanding Angular Ivy Library Compilation | lacolaco/tech
In this post, I will explain how to compile Angular libraries with Ivy, which is now possible in Angular v11.1, and its details....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have an open PR that’s been finished and unmerged for months that address this exact issue 😕
Release in v6.0.0