一尘不染

tsconfig.json:内部版本:在配置文件中找不到输入

json

我有一个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升级到了更新3。以前有人遇到过吗?


阅读 919

收藏
2020-07-27

共1个答案

一尘不染

将一个空的打字稿文件添加到打字稿脚本文件夹(tsconfig文件的位置),以满足打字稿编译器的要求。

2020-07-27