Why am I receiving the
No inputs were found in config file
error from TypeScript?
I have set up my tsconfig.json
in VS Code, but the error occurs when I try to build it.
The terminal displays:
error TS18003: No inputs were found in config file '/Users/user/Desktop/projects/ts/.vscode/tsconfig.json'.
Specified 'include' paths were '["/Users/user/Desktop/projects/ts/mathweb/app.ts"]' and 'exclude' paths were '["/Users/user/Desktop/projects/ts/mathweb/app.ts"]'.
Found 1 error.
The terminal process "zsh '-c', 'tsc -p /Users/user/Desktop/projects/ts/.vscode/tsconfig.json'" failed to launch (exit code: 2).
Terminal will be reused by tasks, press any key to close it.
I searched on SO, some answers suggested creating an empty file, which I tried: https://i.stack.imgur.com/pygsA.jpg
However, this did not resolve the issue. Another suggestion was to use rootDir
in tsconfig.json, so I implemented that as well, with no success.
This has left me feeling confused. As someone who is not very familiar with TypeScript, all I want is for the compilation to go to a specific directory, but that is not happening.
I am using the vscode IDE, unsure if the issue lies with the IDE or if it's something on my end.
Here is my tsconfig.json:
{
"compilerOptions": {
"outDir": "/Users/user/Desktop/projects/ts/mathweb/app.ts",
"rootDir": "./mathweb"
},
"include": [
"/Users/user/Desktop/projects/ts/mathweb/app.ts"
]
,
"exclude": [
"/Users/user/Desktop/projects/ts/mathweb/app.ts"
]
}