Hello,
I got this error after running ionic app
Ionic 2 Error - No provider for ApplicationInitStatus!
Any solution?
Please use the support forums for support requests instead of submitting GitHub issues. If you had searched them with your error message, you would have found this thread which explains that you forgot to import BrowserModule
.
Hello! Thanks for opening an issue with us! As this seems like more of a support question i will urge that you ask this question on our forum or on our slack channel. Thanks for using Ionic!
I solve this by importing
import { BrowserModule } from '@angular/platform-browser';
in app.modules.ts
and injecting this lines below as
imports: [
IonicModule.forRoot(MyApp),
BrowserModule
],
@stanlee321 should be app.module.ts
Sorry typo error. Yes, it is app.module.ts
Thanks @stanlee321 !! See doc. https://angular.io/api/platform-browser/BrowserModule
Thanks@stalee321 Worked for me
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Most helpful comment
I solve this by importing
import { BrowserModule } from '@angular/platform-browser';
in app.modules.ts
and injecting this lines below as
imports: [ IonicModule.forRoot(MyApp), BrowserModule ],