HiveBrain v1.2.0
Get Started
← Back to all entries
patterntypescriptCritical

tsconfig.json: Build:No inputs were found in config file

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
foundwereinputsfilebuildconfigtsconfigjson

Problem

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?

Solution

TypeScript expects there to be at least one TypeScript file in the folder in order to compile.

To fix the error, add an empty typescript file to the typescript scripts folder (the location of your tsconfig file).

Context

Stack Overflow Q#41211566, score: 809

Revisions (0)

No revisions yet.