I have an ASP.NET core project and I'm getting this error when I try to build it:

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:

{
  "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?

推荐答案

Add an empty typescript file to the typescript scripts folder (the location of your tsconfig file) to satisfy the typescript compiler.

Json相关问答推荐

如何在PowerShell中扩展JSON中的嵌套数组

如何使用PlayWriter循环访问JSON对象

Pandas 对REST API的自定义响应

用 Jolt 替换 JSON 中的值

使用 Power BI 中的 Deneb 视觉效果绘制面积图中的 X 轴日期

Bicep脚本中如何设置弹性池的维护窗口?

Jolt 规范将父对象中的所有键应用于数组中的所有对象

使用本地 JSON api react TS Axios

如何将 JSON 文本作为参数传递给 powershell?

我如何将 JSON 格式与 flutter 一起使用?帮助使用 Gamebanana api

jolt 通配符如何用于 RHS?

jq:用列表包装所有第一级原子值

SwiftUI:如何使用 0 索引数组键为 JSON 添加类型

如何在 Node.js 中解析包含NaN的 JSON 字符串

JSON extract\set 的 SQLite JSON1 示例

从 HttpResponse 获取 json

如何在 MVC4 中将 Json 字符串输出为 JsonResult?

将 Objective-C 对象序列化和反序列化为 JSON

如何使用 Gson 解码具有未知字段的 JSON?

类型是接口或抽象类,不能实例化