# Fix tsconfig.json 'No inputs were found in config file'

> How to fix the tsconfig.json No inputs were found in config file error in an Astro project by adding an empty TypeScript file or an include path.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2022-04-16 | Topics: [JavaScript](https://flaviocopes.com/tags/js/) | Canonical: https://flaviocopes.com/fix-tsconfig-json-no-inputs-found/

A few students of mine had this problem with an [Astro](https://flaviocopes.com/astro-introduction/) project.

[Astro](https://flaviocopes.com/astro-introduction/) by default includes a `tsconfig.json` file and this file gave them an error in [VS Code](https://flaviocopes.com/vscode/).

The error was coming from `tsconfig.json` and it said

> `No inputs were found in config file`

We weren't writing any [TypeScript](https://flaviocopes.com/typescript/), so that was a strange issue.

Here are some possible solutions.

First, try restarting VS Code.

If that doesn't work, add an empty `file.ts` file in the same folder where there's the `tsconfig.json` file.

Or delete `tsconfig.json`.

Unless you plan to use [TypeScript](https://flaviocopes.com/typescript/), in which case you can configure it to point to the TypeScript files in your project by adding `include`, from:

```json
{
  "compilerOptions": {
    "moduleResolution": "node"
  }
}
```

to 

```json
{
  "compilerOptions": {
    "moduleResolution": "node"
  },
  "include": [
    "./src/**/*.ts"
  ]
}
```

If you want to build a clean `tsconfig.json` from scratch, I built a free [tsconfig generator](https://flaviocopes.com/tools/tsconfig-generator/) that explains every option.
