No provider for CompleteTestService!
See original GitHub issueHello,
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:
- Created 5 years ago
- Comments:7
Top GitHub Comments
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.
Since this project is not actively maintained I have fixed this issue and others in a forked repository.
Ionic4-auto-complete