【发布时间】:2016-09-15 12:35:09
【问题描述】:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
]
}
我正在尝试将 angular2/beta8 应用升级到 RC1,并且我正在根据快速入门指南进行基本重组。
我将它的 tsconfig.json 复制到我的项目目录中。我想我已经准备好了所有其他东西,但是当我运行tsc 时,我的 node_modules 文件夹中的文件中出现了各种错误。为什么它甚至一开始就在那里寻找?
【问题讨论】:
-
TypeScript 的哪个版本?如果是1.6之前,那就升级吧。
-
@paleo,
tsc -v显示 1.8.10
标签: typescript angular tsc