Angular 2 Meteor - TypeScript '除非提供 --module 标志,否则无法编译模块
Angular 2 Meteor - TypeScript 'Cannot compile module unless the --module flag is provided
我正在关注这个 Angular 2.0 Meteor Tutorial。
我完全按照所有步骤操作,添加和删除指定的模块。安装了最新版本的 Meteor 和 VS Code。
本教程声称 System.js 可作为模块加载器 'out of the box' 使用,包含在 Angular2-meteor 包中。由于某种原因它似乎不起作用,因为我在 VS 中遇到错误:
/// <reference path="../typings/angular2-meteor.d.ts" />
import {Component, View, bootstrap} from 'angular2/angular2';
除非提供“--module”标志,否则无法编译模块。
我发现关于该主题的其他答案没有任何用处,特别是因为在我的情况下,--module 标志必须提供给由 angular2-meteor 包自动加载的 TS 编译器。
我通过重新安装整个堆栈(meteor、VSCode 和所有软件包)修复了它。不知道,但它到底是什么引起的,但它似乎是一些包版本问题。
我正在关注这个 Angular 2.0 Meteor Tutorial。 我完全按照所有步骤操作,添加和删除指定的模块。安装了最新版本的 Meteor 和 VS Code。
本教程声称 System.js 可作为模块加载器 'out of the box' 使用,包含在 Angular2-meteor 包中。由于某种原因它似乎不起作用,因为我在 VS 中遇到错误:
/// <reference path="../typings/angular2-meteor.d.ts" />
import {Component, View, bootstrap} from 'angular2/angular2';
除非提供“--module”标志,否则无法编译模块。
我发现关于该主题的其他答案没有任何用处,特别是因为在我的情况下,--module 标志必须提供给由 angular2-meteor 包自动加载的 TS 编译器。
我通过重新安装整个堆栈(meteor、VSCode 和所有软件包)修复了它。不知道,但它到底是什么引起的,但它似乎是一些包版本问题。