【发布时间】:2016-02-21 06:04:27
【问题描述】:
我正在关注这个Angular 2.0 Meteor Tutorial。 我完全按照所有步骤添加和删除了指定的模块。安装了 Meteor 和 VS Code 的最新版本。
本教程声称 System.js 可作为模块加载器“开箱即用”,包含在 Angular2-meteor 包中。由于某种原因,它似乎不起作用,因为我在 VS 中遇到错误:
/// <reference path="../typings/angular2-meteor.d.ts" />
import {Component, View, bootstrap} from 'angular2/angular2';
除非提供 '--module' 标志,否则无法编译模块。
我发现关于该主题的其他答案没有任何用处,尤其是因为在我的情况下,必须将 --module 标志提供给由 angular2-meteor 包自动加载的 TS 编译器。
【问题讨论】:
标签: angular meteor typescript angular2-meteor