question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR Error: Uncaught (in promise): Error: StaticInjectorError[e]:

See original GitHub issue

https://image.prntscr.com/image/4Huq_HhQTHyIjYKH0ztgKw.png

ERROR Error: Uncaught (in promise): Error: StaticInjectorError[e]: StaticInjectorError[e]: NullInjectorError: No provider for e!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:36
  • Comments:94 (2 by maintainers)

github_iconTop GitHub Comments

260reactions
humarkxcommented, Nov 10, 2017

Importing both HttpModule and HttpClientModule fixes the problem.

import { HttpClientModule } from '@angular/common/http'; import { HttpModule } from '@angular/http';

103reactions
SK-Agrawalcommented, Dec 3, 2017

Add import { HttpModule } from ‘@angular/http’; in app.module.ts

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught (in promise): Error: StaticInjectorError(AppModule ...
This error happens because one of your dependencies in your module requires options , and you didn't import it. The compiler doesn't see...
Read more >
Uncaught (in promise): NullInjectorError: StaticInjectorError ...
Error i got : core.js:6014 ERROR Error: Uncaught (in promise): NullInjectorError: StaticInjectorError(AppModule)[Dropdown -> FilterService]:
Read more >
Uncaught (in promise): Error: StaticInjectorError(AppModule ...
Erro : [ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[PhotoListResolver]: ] ; import {NgModule} from ; from '@angular/ ...
Read more >
Error: StaticInjectorError(AppModule)[GridColumnDirective ...
I'm trying to run a grid component on my page, and I get the following error ... ERROR Error: Uncaught (in promise): Error:...
Read more >
Uncaught (in promise): Error: StaticInjectorError(AppModule ...
I have a strange error. Usually (I did my googling), in this case of errors Angular specifies in square brackets which exactly module/service/provider/etc ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found