我有适合获取视觉工作室代码与我的角2起动器项目。VS CODE错误S5057在指定的目录下找不到tsconfig.json文件:'。'
我已经建立了我的tsconfig.json是这样的...
{
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
]
}
我立刻碰到这个错误
[ts] Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.
class AppComponent
我不能确定发生了什么事情,所以我跑了进来一个构建并得到这个错误。
error TS5057: Cannot find a tsconfig.json file at the specified directory: '.'
此错误解释了为什么我收到关于组件装饰的错误,但我不知道为什么没有被发现tsconfig.json文件。
我只有一个文件夹,它包含除index.html,package.json和.gitignore之外的所有内容。