Angular 11 with Ivy not working
See original GitHub issueI’m submitting a …** (check one with “x”)
[x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter
Current behavior
when ng serve, got error message:
ERROR in node_modules/@swimlane/ngx-datatable/lib/ngx-datatable.module.d.ts:2:22 - error NG6002: Appears in the NgModule.imports of MyOwnModule, but could not be resolved to an NgModule class.
This likely means that the library (@swimlane/ngx-datatable/lib/ngx-datatable.module) which declares NgxDatatableModule 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.
Expected behavior
no such problem in my previou project with Angular 9
Reproduction of the problem
no speical, same code, just not working in angular 11
**What is the motivation / use case for changing the behavior?**
<!-- Describe the motivation or the concrete use case -->
Please tell us about your environment:
Win, VS code
Table version:
latest version: 18.0.0
Angular version:
11.0.2
Browser:
All
Language:
All
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12
Top Results From Across the Web
Angular 11 project is not compiling when IVY is enabled.
The error you show implies that the library has not been converted to Ivy compatible code by the ngcc tool, which should have...
Read more >Angular 11 is not running ngcc - ivy - Stack Overflow
My problem was that an another tsconfig file was overwriting the root's definitions, and turned off ivy and ngcc altogether.
Read more >Angular Ivy
Ivy is the code name for Angular's next-generation compilation and rendering pipeline. With the version 9 release of Angular, the new compiler and...
Read more >All About Angular Engine Ivy in 5 mins
In Angular 10 and Angular 11, Ivy completely takes over the compiler (Angular Ivy compatibility compiler) and provides a stronger core structure ...
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
updated
@joeveiga thanks, deleting the node_modules and package lock helps. It’s working now.