我有一个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 2015以更新3。以前有人遇到过这种情况吗?
发布于 2016-12-18 18:53:07
向类型记录脚本文件夹( tsconfig文件的位置)添加一个空的类型记录文件,以满足类型记录编译器的要求。
发布于 2019-08-23 16:23:23
您还可以尝试重新启动代码编辑器。效果也很好。
发布于 2017-08-21 06:19:01
我根本没有在这个项目中使用TypeScript,所以必须处理这个问题是非常令人沮丧的。我通过向项目根目录添加一个tsconfig.json和一个空的file.ts文件来修正这个问题。tsconfig.json包含以下内容:
{
"compilerOptions": {
"allowJs": false,
"noEmit": true // Do not compile the JS (or TS) files in this project on build
},
"compileOnSave": false,
"exclude": [ "src", "wwwroot" ],
"include": [ "file.ts" ]
}
https://stackoverflow.com/questions/41211566
复制相似问题