Angular2-meteor社交演示未找到指令注释

时间:2016-06-19 12:37:37

标签: meteor angular angular2-meteor

我正在为angular2-meteor做社交演示,但我没有通过第0步:Bootstrapping。 教程的网址是:https://www.angular-meteor.com/tutorials/socially/angular2/bootstrapping

我的客户端/ app.ts文件目前包含此内容:

import 'reflect-metadata';
import { Component } from '@angular/core';
import { bootstrap } from '@angular/platform-browser-dynamic';

@Component({
    selector: 'app',
    templateUrl: '/client/app.html'
})
class Socially { }

bootstrap(Socially);

我的app.html文件:

Hello World!

我的index.html包含:

<body>
    <app></app>
</body>

然而,一旦我运行代码,我就会收到此异常:

  

例外:在社交上没有找到指令注释

我运行windows 10 pro,项目创建为meteor --release 1.3.2.4项目。

这是我的package.json的样子:

{
  "name": "djvanderburgt",
  "private": true,
  "scripts": {
    "start": "meteor run"
  },
  "dependencies": {
    "@angular/common": "^2.0.0-rc.1",
    "@angular/compiler": "^2.0.0-rc.1",
    "@angular/core": "^2.0.0-rc.1",
    "@angular/platform-browser": "^2.0.0-rc.1",
    "@angular/platform-browser-dynamic": "^2.0.0-rc.1",
    "@angular/router": "3.0.0-alpha.3",
    "angular2-meteor": "^0.5.5",
    "angular2-meteor-auto-bootstrap": "0.5.5",
    "angular2-meteor-polyfills": "^0.1.1",
    "es6-shim": "^0.35.1",
    "meteor-node-stubs": "^0.2.3",
    "reflect-metadata": "^0.1.2",
    "rxjs": "^5.0.0-beta.6",
    "typings": "^1.3.0",
    "zone.js": "^0.6.12"
  }
}

1 个答案:

答案 0 :(得分:0)

根据angular2-meteor issue #301,您提到的问题应通过将angular2-meteor更新为0.6.0来解决。