Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No provider for ApplicationInitStatus" #27

Open
thoni56 opened this issue Apr 7, 2017 · 3 comments
Open

"No provider for ApplicationInitStatus" #27

thoni56 opened this issue Apr 7, 2017 · 3 comments

Comments

@thoni56
Copy link

thoni56 commented Apr 7, 2017

I had a lot of problems with versions due to ionic-angulars rigid version dependencies (4.0.1 did not meet the required 4.0.0) so I'm not exactly sure where this should be introduced. Possibly at the end of the basic setup since thats where there is some talk about browsers.

But when I had added the Chats page and was expecting to see something working in my browser this run time error popped up.

After some googling it seems like the BrowserModule need to be added to app.module.ts:

import { BrowserModule } from '@angular/platform-browser';

and

imports: [
    IonicModule.forRoot(MyApp),
    BrowserModule
],

And this fixed it for me.

@dennishu001
Copy link

Got the same problem here and your suggestion fixed it for me as well. Thanks.

@hexufeng
Copy link

that solved my problem! thanks very much !!!

@firebuggirl
Copy link

Thank you @thoni56!

domq pushed a commit to epfl-si/angular.starterkit that referenced this issue May 4, 2023
As per the instructions at https://angular-meteor.com/tutorials/whatsapp2/meteor/setup , again with a few modern-day tweaks as follows:
- Reorganize the files in a more Meteoric way
- Turn off AOC (for now) i.e. don't try to `import` from an HTML file
- Need a `tsconfig.json` file that contains
  - `"experimentalDecorators": true` to avoid [an otherwise harmless IDE error](https://www.typescriptlang.org/docs/handbook/decorators.html),
  - `"noEmitHelpers": false` to avoid a [**run-time** browser error] (https://stackoverflow.com/questions/36808303/webpackangular2-error-uncaught-referenceerror-decorate-is-not-defined) — in spite of [what the doc says about `tsconfig.json` being ignored](https://atmospherejs.com/meteor/angular-compilers).
- Need to `imports: [BrowserModule]` field in `@NgModule`, to avoid [another run-time browser error](Urigo/Ionic2-MeteorCLI-WhatsApp#27)
- Aaaaand need a `bootstrap: [MyApp]` field also in `@NgModule`, to avoid [NG0403](https://angular.io/errors/NG0403)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants