1

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

我的 client/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,项目被创建为流星 --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"
  }
}
4

1 回答 1

0

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

于 2016-07-14T09:21:24.510 回答