No provider for NotificationsService
See original GitHub issueI’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:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top 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 >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
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?
Glad you got it working 👍