dbfannin / ngx-logger

Angular logger
MIT License
428 stars 110 forks source link

Angular 17 compatibility with Angular Ivy #334

Closed JorisvanderSluisOvatic closed 11 months ago

JorisvanderSluisOvatic commented 11 months ago

We've upgraded our application from Angular 16 to Angular 17 and receive to following error:

LoggerModule' does not appear to be an NgModule class.(-996002)

logger.module.d.ts(2, 15): This likely means that the library (ngx-logger) 
which declares LoggerModule 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.

We import the Loggermodule in our app.module.ts by the following code

imports:[

 LoggerModule.forRoot({
      level: !environment.production ? NgxLoggerLevel.OFF : NgxLoggerLevel.OFF,
      // serverLogLevel
      serverLogLevel: NgxLoggerLevel.OFF,
    })
]

Could you upgrade the package to support Angular 17?

JorisvanderSluisOvatic commented 11 months ago

Github shows releases up to version 4.2.1 I've found a newer version here which works: https://www.npmjs.com/package/ngx-logger/v/5.0.12