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.

ngx-logger is not compatible with Ivy

See original GitHub issue

We need to make ngx-logger compatible with Ivy

Documentation is here : https://angular.io/guide/creating-libraries#ivy-libraries

Some errors that were sent : ngx-logger [es2015/esm2015] (git+https://github.com/dbfannin/ngx-logger.git) Encourage the library authors to publish an Ivy distribution.

and

Error: Failed to compile entry-point ngx-logger (es2015 as esm2015) due to compilation errors: …/…/…/node_modules/@angular/common/common.d.ts:114:22 - error NG6002: Appears in the NgModule.imports of LoggerModule, but could not be resolved to an NgModule class.

This likely means that the library (@angular/common) which declares CommonModule 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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
bmtheocommented, Dec 6, 2021

Just published 5.0.4 that fixes the issue

1reaction
MickLcommented, Nov 28, 2021

I think you should remove enableIvy and then the partial should be all it needs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ngx Logger Level Only Instance Angular 13 - StackBlitz
import { NGXLogger } from 'ngx-logger';. @Component({ ... constructor(private logger: NGXLogger) { ... this.logger.trace('This is not displayed').
Read more >
Angular 12 and ngx Boostrap - ivy - Stack Overflow
i try to build and i have this error : This likely means that the library (ngx-bootstrap/modal) which declares BsModalService has not been ......
Read more >
not compatible with Angular Ivy - Floyk
If you have experience error with your newly installed module on Angular 9 or Angular 10 saying that some part of it are...
Read more >
Angular Logging Made Simple with ngx-logger - onthecode
Not only will logging save you hours of debugging in the long run but also give you confidence about your solutions. Basic logging...
Read more >
cannot find module 'rxjs' or its corresponding type declarations ...
C:\Path-to-App\node_modules\@angular-devkit\architect\node_modules\rxjs\internal-compatibility\. I am new to typescript and not sure how to resolve these ...
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