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

Blank page after updating from angular2-meteor 0.5.2 to 0.5.3 #237

Closed
hongbo-miao opened this issue Apr 20, 2016 · 2 comments
Closed

Blank page after updating from angular2-meteor 0.5.2 to 0.5.3 #237

hongbo-miao opened this issue Apr 20, 2016 · 2 comments

Comments

@hongbo-miao
Copy link
Contributor

hongbo-miao commented Apr 20, 2016

After updating angular2-meteor from 0.5.2 to 0.5.3 (meteor version 1.3.2.3), my app shows a blank page.

My terminal shows;

If you notice problems related to these missing modules, consider running:
  meteor npm install --save angular2-meteor

which I already did.

My browser console got the error:

Uncaught Error: Cannot find module 'angular2-meteor/meteor_component'

My code just a "Hello World" codes, nothing more:

import 'reflect-metadata';
import 'zone.js/dist/zone';
import {Component} from 'angular2/core';
import { bootstrap } from 'angular2-meteor-auto-bootstrap';
import { MeteorComponent } from 'angular2-meteor/meteor_component';

@Component({
  selector: 'app',
  templateUrl: 'client/app.html'
})
class App extends MeteorComponent {
    constructor() {
        super();
    }
}
bootstrap(App);

@hongbo-miao hongbo-miao changed the title After updating from angular2-meteor 0.5.2 to 0.5.3, Cannot find module 'angular2-meteor/meteor_component' The error after updating from angular2-meteor 0.5.2 to 0.5.3 Apr 20, 2016
@hongbo-miao hongbo-miao changed the title The error after updating from angular2-meteor 0.5.2 to 0.5.3 Blank page after updating from angular2-meteor 0.5.2 to 0.5.3 Apr 20, 2016
@barbatus
Copy link
Collaborator

MeteorComponent is in angular2-meteor directly, i.e., import {MeteorComponent} from 'angular2-meteor'. Why not to check out the repo before posting an issue?

@hongbo-miao
Copy link
Contributor Author

Thanks for quick response!! It is working again now!
I only checked the full tutorial, forgot to check the the code in this readme file...

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

2 participants