lula / ngx-soap

Simple SOAP client for Angular
MIT License
66 stars 61 forks source link

no provider for httpclient error #41

Open pigivc opened 5 years ago

pigivc commented 5 years ago

when i try to inject NgxSoapService in a injectable service i get this error: core.js:15714 ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[HttpClient]: StaticInjectorError(Platform: core)[HttpClient]: NullInjectorError: No provider for HttpClient! Error: StaticInjectorError(AppModule)[HttpClient]: StaticInjectorError(Platform: core)[HttpClient]: NullInjectorError: No provider for HttpClient! at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (core.js:8895) at resolveToken (core.js:9140) at tryResolveToken (core.js:9084) at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:8981) at resolveToken (core.js:9140) at tryResolveToken (core.js:9084) at StaticInjector.push../nodemodules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:8981) at resolveNgModuleDep (core.js:21208) at NgModuleRef.push../nodemodules/@angular/core/fesm5/core.js.NgModuleRef.get (core.js:21897) at injectInjectorOnly (core.js:1773) at resolvePromise (zone.js:831)

lula commented 5 years ago

Hello @pigivc add HttpClientModule to your module.