dbfannin / ngx-logger

Angular logger
MIT License
428 stars 110 forks source link

issue with angular core dependency #301

Closed summerbasehart closed 1 year ago

summerbasehart commented 2 years ago

Hello,

Trying to do a build in angular and I am getting some core dependency errors

Error: ./node_modules/ngx-logger/fesm2015/ngx-logger.mjs 900:58-80 Can't import the named export 'ɵɵngDeclareInjector' from non EcmaScript module (only default export is available)

Error: ./node_modules/ngx-logger/fesm2015/ngx-logger.mjs 899:58-80 Can't import the named export 'ɵɵngDeclareNgModule' from non EcmaScript module (only default export is available)

I tried updating core and angular cli, but I still have the errors

minademian commented 2 years ago

Had the same error. I'm running Angular 11. Documentation says that the library supports 6+.

danielteles commented 2 years ago

I was having the same problem here. Running Angular 11.2.3 and ngx-logger 5.0.9, so I installed the version 4.3.3 and the problem was solved.

P.S.: I chose the version 4.3.3 based on the number of the downloads on the npm page

bmtheo commented 2 years ago

Thanks for sharing your solution

Documentation might not be up to date about versions that are supported

bmtheo commented 2 years ago

Documentation (on github, npmjs will be updated when next publish happens) is updated with a warning about this topic, ideally we should have a "matching table" for versions

bmtheo commented 1 year ago

Closing this issue, we are now using #308 to list all dependencies, once we have the full list it will be included in the doc