Demo app: NullInjectorError: No provider for HttpBackend
See original GitHub issueHello,
I am new to ngx-logger and I do not get the demo running.
When I run npm run demo
the compile and run process work fine, but only an empty page is shown at http://localhost:4200. Completely empty.
The browser console tells:
ERROR NullInjectorError: "StaticInjectorError(AppModule)[NGXLoggerHttpService -> HttpBackend]:
StaticInjectorError(Platform: core)[NGXLoggerHttpService -> HttpBackend]:
NullInjectorError: No provider for HttpBackend!"
What do I miss?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:9 (2 by maintainers)
Top Results From Across the Web
No provider for Http - angular - Stack Overflow
In the App Module. ... Provide Http in Providers property of @NgModule ... defaultOptions: RequestOptions) => new Http(backend, defaultOptions),rations ...
Read more >[Debugging] NullInjectorError: No provider for {Class}!
In this video, you'll learn what the error " NullInjectorError : No provider for {Class}!" means, how to debug it, and prevent it...
Read more >How to fix No provider for HttpClient error in Angular
To fix NullInjectorError: No provider for HttpClient! follow the below steps 1. Open `app.module.ts` file 2. Import HttpClientModule from ...
Read more >nullinjectorerror no provider for service angular 13 Code Example
NullInjectorError : No provider for HttpClient! at NullInjector.get ... Make sure to wrap the top-level component of your app with DragDropContext app.js ...
Read more >HttpBackend - Angular
Angular is a platform for building mobile and desktop web applications. Join the community of millions of developers who build compelling user interfaces ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I imported HttpClientModule as described in (https://github.com/dbfannin/ngx-logger/issues/137), and the error went away.
Hi, sorry to kick the dead horse, but surely this shouldn’t be triggering an error when you aren’t running the demo?
Just including the module per docs I’m getting this error. We shouldn’t need to include the httpclientmodule if we aren’t actually using server loging.