question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Library is not compatible with Ivy

See original GitHub issue

I 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 or npm 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:closed
  • Created a year ago
  • Reactions:10
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
Timebuttcommented, May 10, 2022

I have an open PR that’s been finished and unmerged for months that address this exact issue 😕

2reactions
arshawcommented, Dec 15, 2022

Release in v6.0.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found