ASP.NET コア プロジェクトがあり、ビルドしようとすると次のエラーが発生します。
error TS18003: Build:No inputs were found in config file 'Z:/Projects/client/ZV/src/ZV/Scripts/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["../wwwroot/app","node_modules/*"]'.
1> The command exited with code 1.
1> Done executing task "VsTsc" -- FAILED.
これは私のtsconfig.json
ファイルです:
{
"compileOnSave": true,
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es5", "dom" ],
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
"noImplicitAny": false,
"outDir": "../wwwroot/app/",
"removeComments": false,
"sourceMap": true,
"target": "es6"
},
"exclude": [
"../wwwroot/app",
"node_modules/*"
]
}
これはバグでしょうか、それとも私が何か間違っているのでしょうか? 最近、Visual Studio 2015 を Update 3 にアップグレードしました。これまでにこれに遭遇した人はいますか?
ベストアンサー1
TypeScript をコンパイルするには、フォルダー内に少なくとも 1 つの TypeScript ファイルが存在する必要があります。
エラーを修正するには、Typescript スクリプト フォルダー (tsconfig ファイルの場所) に空の Typescript ファイルを追加します。