2
Answers

no provider for Renderer in Angular8

Daljeet Singh

Daljeet Singh

5y
6.2k
1
I'm getting the below error after migratring my angular5 project to angular8
 
ERROR NullInjectorError: R3InjectorError(AppModule)[Renderer]:
StaticInjectorError(AppModule)[Renderer]:
StaticInjectorError(Platform: core)[Renderer]:
NullInjectorError: No provider for Renderer!
at NullInjector.get (http://purplle.local.com/static/hello-ivy/dist/vendor-es2015.js:32721:27)
at resolveToken (http://purplle.local.com/static/hello-ivy/dist/vendor-es2015.js:33048:24)
at tryResolveToken (http://purplle.local.com/static/hello-ivy/dist/vendor-es2015.js:32974:16)
at StaticInjector.get (http://purplle.local.com/static/hello-ivy/dist/vendor-es2015.js:32837:20)
at resolveToken (http://purplle.local.com/static/hello-ivy/dist/vendor-es2015.js:33048:24)
at tryResolveToken (http://purplle.local.com/static/hello-ivy/dist/vendor-es2015.js:32974:16)
at StaticInjector.get (http://purplle.local.com/static/hello-ivy/dist/vendor-es2015.js:32837:20)
at R3Injector.get (http://purplle.local.com/static/hello-ivy/dist/vendor-es2015.js:50047:33)
at NgModuleRef$1.get (http://purplle.local.com/static/hello-ivy/dist/vendor-es2015.js:58502:33)
at Object.get (http://purplle.local.com/static/hello-ivy/dist/vendor-es2015.js:56384:35)
 
Answers (2)