Skip to content
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

Error with Production Mode NULLINJECTORERROR #212

Open
psks1204 opened this issue Sep 15, 2020 · 3 comments
Open

Error with Production Mode NULLINJECTORERROR #212

psks1204 opened this issue Sep 15, 2020 · 3 comments

Comments

@psks1204
Copy link

I am using ReactiveComponentLoaderModule to open a module to another module on requirement, which was working fine for me in development mode. ng b --watch does not produce any error and works perfectly but when I try to build the production build,
I get ERROR NullInjectorError: StaticInjectorError(o)[_ -> InjectionToken ComponentInjector] I've tried things to solve but nothing worked for me, build is successful but on the browser it doesn't open. I'm attaching screenshots with it.
Please help me out.

image
image

@olofens
Copy link

olofens commented Nov 18, 2020

@psks1204 ever find a fix for this? Did you try what others have mentioned in neighboring issues?

@olofens
Copy link

olofens commented Nov 18, 2020

I have gotten it to work on my end now in both angular 8 and 9. If you want some help, please provide a reproduction and I can assist.

@yjaaidi
Copy link
Contributor

yjaaidi commented Nov 18, 2020

Hi there!
Thank you @olofens for helping out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants