no provider for rendered2
Closed this issue · 13 comments
hello,
thx for your work, but i got this error :
ERROR Error: StaticInjectorError[Renderer2]:
StaticInjectorError[Renderer2]:
NullInjectorError: No provider for Renderer2!
at _NullInjector.get (core.js:923)
do you have any idea from where it's from ?
Hi @JoaoPintoM I have no idea! I just updated ng-packagr
and compiled the package again, Try with v2.3.1 and let me know if it works! if it did not, add your usage code
Same here.
Error happens with Angular 5.0.1 using ngx-disqus 2.3.1
@kristaps-ancans @JoaoPintoM Fixed in v2.3.4 here is a stackblitz
@MurhafSousli tested on Angular 5.0.1 - still the same.
@kristaps-ancans remove node_modules
and reinstall again, have a look at the stackblitz I posted above
@MurhafSousli already removed node_modules, reinstalled. In stackblitz angular version is 5.0.0. Try with latest or at least 5.0.1.
@kristaps-ancans Please reproduce your issue in a stackblitz
https://ngx-disqus-vcswsg.stackblitz.io
ERROR Error: StaticInjectorError[Renderer2]:
StaticInjectorError[Renderer2]:
NullInjectorError: No provider for Renderer2!
@kristaps-ancans I need the edit link!!
It seems that there is a problem with dependencies version, current workaround:
- Downgrade to 5.0.0 and use v2.3.4
- Upgrade to 5.0.3 and use v2.3.0
Edit link - https://stackblitz.com/edit/ngx-disqus-vcswsg
Weird situation. Will try your suggestion tomorrow at work and see if it helps.
Thanks.
@kristaps-ancans fixed in v2.3.6
@MurhafSousli just tested v2.3.6 - works great. Thanks.