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

Tutorial unclear or out of date #32

Open
NicholasHattabaugh opened this issue Apr 14, 2017 · 9 comments
Open

Tutorial unclear or out of date #32

NicholasHattabaugh opened this issue Apr 14, 2017 · 9 comments

Comments

@NicholasHattabaugh
Copy link

I've tried several times to get this tutorial to work, i'm new to angular2 and meteor but would love to use it for my latest project, i can get this to build for the browser but nothing appears, the build fails for ios, and I have a mile long list of errors in the web console when it does run, all of the other tutorials on the meteor website I was able to get to work, if anyone could help me it would be greatly appreciated.

@NicholasHattabaugh
Copy link
Author

these are the three errors I get in the browser console,
modules.js?hash=a269f0f…:31333 ERROR Error: No provider for ApplicationInitStatus!

Unhandled Promise rejection: No provider for ApplicationInitStatus! ; Zone: ; Task: Promise.then ; Value: Error: No provider for ApplicationInitStatus!

modules.js?hash=a269f0f…:1285 Error: Uncaught (in promise): Error: No provider for ApplicationInitStatus!
Error

@NicholasHattabaugh
Copy link
Author

this is after completing the bootstrapping section of the tutorial using the meteor cli

@JayDijkstra
Copy link

Also a problem understanding this tutorial completely. Getting the same errors and now have a weird SASS compile error:

/client/main.scss: Scss compiler error: unclosed parenthesis

I just want to go as easy trough this tutorial as the old Socially tutorial, but every time something goes wrong!

@JayDijkstra
Copy link

The SASS Compiler error was an ; in my markup language, dumb me :).
I fixed my No Provider for ApplicationInitStatus by adding the BrowserModule to my app.module.ts file.

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

Dont forget to add it to your Imports declarations as well (inside of your NgModule)

@NgModule({
  declarations: [
    MyApp,
    ChatsPage
  ],
  imports: [
    IonicModule.forRoot(MyApp),
    MomentModule,
    BrowserModule
  ],
})

Hope this will solve your problem as well!

@trancaohuy
Copy link

I also get the same error when running through the bootstrapping tutorial. So far, the only thing that is working for me is using the webpack version of the tutorial. However, it seems like the webpack version doesn't support offline database. Does anyone know if the meteor tutorial support offline database?

@ghost
Copy link

ghost commented May 11, 2017

Is anyone able to make the tutorial work with meteor CLI? I am getting a bunch of errors and its driving me crazy. It seems the tutorial is really out of date.

@jessonjoy
Copy link

yeah I too am facing errors on the first steps of this tutorials. I copied the code verbatim and I get the following errors:

imports/app/app.module.ts (8, 11): Argument of type '{ declarations: typeof MyApp[]; imports: typeof ErrorHandler[]; entryComponents: typeof MyApp[]; ...' is not assignable to parameter of type 'NgModule'.

@jessonjoy
Copy link

I added a custom error hander module and class and imported them and it works now.

import {GlobalErrorHandler} from "./error.module";
import {GlobalErrorModule } from "./error.module";

@NgModule({
    declarations: [ MyApp ],
    imports: [BrowserModule, GlobalErrorModule],
    bootstrap: [ MyApp ],
    providers: [
        { provide: GlobalErrorHandler, useClass: GlobalErrorHandler}
    ]
})

@sam17896
Copy link

I just want a simple boiler-plate meteor application with angular2.. after following step 1 my application is started at port 3000 but nothing is displaying.. after sometimes i get "aww snap" error.

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

5 participants