tsconfig.json: Build:No inputs were found in config file
Add an empty typescript file to the typescript scripts folder (the location of your tsconfig file) to satisfy the typescript compiler.
You can also try to restart your code editor. That works well too.
This can occur because typescript server can't find any files described by the include
array:
// tsconfig.json
{
//...
"include": [
"./src/"
],
}
If you're using VSCode, you can restart your TS server within your editor super easily to prompt it to re-evaluate the file like this:
Navigate to any
.ts
or.tsx
fileOpen the command palette (CMD + SHIFT + P on mac)
Run the
TypeScript: Restart TS server
command: