-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue in using ngx-logger in an angular library (buildable) #298
Comments
Do you build the library by itself or with the app ? |
Hi bmtheo, I build the library with the app |
Ok I tried in the project with the same setup (app.module with LoggerModule.forRoot and another module with LoggerModule.forChild) and it works fine We probably have something different, can you provide a reproduction repo so that I can look into that ? |
Ok. I will create a simple app and reproduce the problem |
I could not reproduce in a new project. it looks like is a real project that has config problems and I do not know where. By the way, I am working on MFE and the services are a shared library. I use
|
@hmendezm works for me with MEF |
Hi guys,
I am trying to use ngx-logger in my buildable library but I got the error below
core.mjs:6500 ERROR NullInjectorError: R3InjectorError(AppModule)[TestService -> TestService -> TestService -> NGXLogger]:
NullInjectorError: No provider for NGXLogger!
app/module
library module
The text was updated successfully, but these errors were encountered: