试图遵循允许使用AngularJS 2快速入门演示ASP.NET 5项目中的typescript。我的app.component.ts文件中出现一个错误,即某个功能是一个typescript 1.5功能,当前版本是1.0。
然而我已经安装了1.7.3的typescript扩展,你可以在运行“tsc -v”时看到它
tsconfig.json
{
"compilerOptions": {
"version": true,
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"exclude": [
"node_modules",
"wwwroot"
]
}