tsconfig.json:构建:在配置文件中找不到输入 - tsconfig.json: Build:No inputs were found in config file

10/14 05:26
阅读数 0

问题:

I have an ASP.NET core project and I'm getting this error when I try to build it:我有一个 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.

This is my tsconfig.json file:这是我的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/*"
  ]
}

Is this a bug or am I doing something wrong?这是一个错误还是我做错了什么? I did recently upgrade Visual Studio 2015 to update 3. Has anyone encountered this before?我最近确实将 Visual Studio 2015 升级到更新 3。有没有人遇到过这种情况?


解决方案:

参考一: https://en.stackoom.com/question/2mv0g
参考二: https://stackoom.com/question/2mv0g
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部