How to fix the “Build:No inputs were found in config file” with the TypeScript tsconfig.json file?

Sometimes, we want to fix the “Build:No inputs were found in config file” with the TypeScript tsconfig.json file.

In this article, we’ll look at how to fix the “Build:No inputs were found in config file” with the TypeScript tsconfig.json file.

How to fix the “Build:No inputs were found in config file” with the TypeScript tsconfig.json file?

To fix the “Build:No inputs were found in config file” with the TypeScript tsconfig.json file, we should make sure the source code path is in the include array in tsconfig.json.

For instance, we write

{
  //...
  "include": ["./src/"]
}

in tsconfig.json to set the ./src/ path as one of the path that has TypeScript code files.

Then then TypeScript compiler will compile the code in the directories listed in include.

Conclusion

To fix the “Build:No inputs were found in config file” with the TypeScript tsconfig.json file, we should make sure the source code path is in the include array in tsconfig.json.