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.

No provider for NotificationsService

See original GitHub issue

I’ve installed the latest version (0.4.53) and get this error :

error_handler.js:47EXCEPTION: Uncaught (in promise): Error: No provider for NotificationsService!

I got this in my app.module : declarations: [ AppComponent ], imports: [ BrowserModule, SimpleNotificationsModule.forRoot() ], providers: [ NotificationsService ], bootstrap: [AppComponent]

Could someone give me some help ?

Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
flauccommented, Feb 9, 2017

Huh, I must be missing something.

Here is a quick plunker from a nother issue:

https://plnkr.co/edit/abk2b0

It’s not related but it demonstrates the basic setup. If this doesn’t help could you please try and recreate the issue in a plunker?

0reactions
flauccommented, Feb 9, 2017

Glad you got it working 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

No provider for NotificationsService with documented usage
results in a "No provider for NotificationsService" error after 313ca4d. The following resolves the error, so it seems the documentation ...
Read more >
Angular no provider for NameService - Stack Overflow
I have tried adding a service in app.module.shared.ts in @NgModule section : providers: [DataManagerService] but still get the error : Error: No provider...
Read more >
NG0201: No provider for {token} found! - Angular
You see this error when you try to inject a service but have not declared a corresponding provider. A provider is a mapping...
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 >
What is a push notification service and how does it work?
The Operating System Push Notification Service (OSPNS), or push notifications service · The App Publisher · The Client App.
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