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.

Demo app: NullInjectorError: No provider for HttpBackend

See original GitHub issue

Hello,

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:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
robwattcommented, Aug 14, 2019

I imported HttpClientModule as described in (https://github.com/dbfannin/ngx-logger/issues/137), and the error went away.

4reactions
markterrillcommented, Sep 17, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

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