Categories
TypeScript Answers

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

Spread the love

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.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

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

Leave a Reply

Your email address will not be published. Required fields are marked *