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 CompleteTestService!

See original GitHub issue

Hello,

I’ve followed your instruction but i’ve faced some issues. I’m working on a lazy loading page, so i’ve imported AutoCompleteModule on my lazypage.module.ts file. Then i imported CompleteTestService on my lazypage.ts file.

I’m getting the following error:

Uncaught (in promise): Error: StaticInjectorError(AppModule)[LazyPage -> CompleteTestService]: StaticInjectorError(Platform: core)[LazyPage -> CompleteTestService]: NullInjectorError: No provider for CompleteTestService! Error: StaticInjectorError(AppModule)[LazyPage -> CompleteTestService]: StaticInjectorError(Platform: core)[LazyPage -> CompleteTestService]: NullInjectorError: No provider for CompleteTestService!

My CompleteTestService file looks like the one you provided in the instruction page.

Any help will be appreciated!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
karlerikounapuucommented, Nov 16, 2018

I’m getting this error too when ionic is ran in development mode, haven’t tried production though. What seems to temporarily fix the issue is when you modify/save the provider class and ionic rebuilds the components.

0reactions
jrquick17commented, Sep 11, 2019

Since this project is not actively maintained I have fixed this issue and others in a forked repository.

Ionic4-auto-complete

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 5, NullInjectorError: No provider for Service
NullInjectorError: No provider for TesteventService! I'm using Angular 5, angularfire2/firestore and typescript 2.7.1. testevent.service.ts
Read more >
mobi-auto-complete - npm
This is a component based on Ionic's search-bar component, with the addition of auto-complete abillity. This component is super simple and light ...
Read more >
NG0201: No provider for {token} found! - Angular
A provider is a mapping that supplies a value that you can inject into the constructor of a class in your application. Read...
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 from ...
Read more >
NullInjectorError: No provider for MDBModalService!
You shouldn't import main MDB Pro module and few modules separately. You have a typo in the main MDB module import. You're importing...
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