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.

Angular 11 with Ivy not working

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12

github_iconTop GitHub Comments

1reaction
wanghu24commented, Nov 24, 2020

Please use the template when submitting an issue. Thanks.

updated

0reactions
vickyRatheecommented, Jan 6, 2021

@joeveiga thanks, deleting the node_modules and package lock helps. It’s working now.

Read more comments on GitHub >

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

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