angular-logging-demo icon indicating copy to clipboard operation
angular-logging-demo copied to clipboard

StaticInjectorError(AppModule)[String]

Open pschoro opened this issue 7 years ago • 2 comments

Hey there,

Congrats for this tutorial/repo...super usefull !!! I haved added a service to an internal endpoint which should trigger an error but I have the following issue in the console:

zone.js:192 Uncaught Error: StaticInjectorError(AppModule)[String]: StaticInjectorError(Platform: core)[String]: NullInjectorError: No provider for String! at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (core.js:936) at resolveToken (core.js:1175) at tryResolveToken (core.js:1120) at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:1015) at resolveToken (core.js:1175) at tryResolveToken (core.js:1120) at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:1015) at resolveNgModuleDep (core.js:8065) at NgModuleRef_.push../node_modules/@angular/core/fesm5/core.js.NgModuleRef_.get (core.js:8753) at inject (core.js:1277)

Any idea what's the root cause of this ?

pschoro avatar Jan 07 '19 14:01 pschoro

I'm also having the same problem !!! You could an example using the HttpWrapperService and LogService in the correct way and committing in this repository as a functional example?

diegograssato avatar May 30 '19 02:05 diegograssato

Not working for me as well. Getting same StaticInjectorError. Spending lots of time and unable to make it run.

ds349 avatar Nov 05 '19 20:11 ds349