Files
tsgo/testdata/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js
2025-08-21 23:33:03 +00:00

2.1 KiB

currentDirectory::/home/src/workspaces/project
useCaseSensitiveFileNames::true
Input::
//// [/home/src/workspaces/project/tsconfig.first.json] *new*
{
"extends": "./foobar.json",
"compilerOptions": {
"composite": true
}
}
//// [/home/src/workspaces/project/tsconfig.json] *new*
{
"compilerOptions": {
"composite": true
},
"references": [
{ "path": "./tsconfig.first.json" },
{ "path": "./tsconfig.second.json" }
]
}
//// [/home/src/workspaces/project/tsconfig.second.json] *new*
{
"extends": "./foobar.json",
"compilerOptions": {
"composite": true
}
}
 
tsgo --b
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
error TS5083: Cannot read file '/home/src/workspaces/project/foobar.json'.
error TS18003: No inputs were found in config file '/home/src/workspaces/project/tsconfig.first.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'.
error TS5083: Cannot read file '/home/src/workspaces/project/foobar.json'.
error TS18003: No inputs were found in config file '/home/src/workspaces/project/tsconfig.second.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'.
 
Found 4 errors.
 
//// [/home/src/workspaces/project/tsconfig.first.tsbuildinfo] *new*
{"version":"FakeTSVersion","errors":true,"fileInfos":[],"options":{"composite":true}}
//// [/home/src/workspaces/project/tsconfig.first.tsbuildinfo.readable.baseline.txt] *new*
{
"version": "FakeTSVersion",
"errors": true,
"fileInfos": [],
"options": {
"composite": true
},
"size": 85
}
//// [/home/src/workspaces/project/tsconfig.second.tsbuildinfo] *new*
{"version":"FakeTSVersion","errors":true,"fileInfos":[],"options":{"composite":true}}
//// [/home/src/workspaces/project/tsconfig.second.tsbuildinfo.readable.baseline.txt] *new*
{
"version": "FakeTSVersion",
"errors": true,
"fileInfos": [],
"options": {
"composite": true
},
"size": 85
}
 
tsconfig.first.json::
SemanticDiagnostics::
Signatures::
 
tsconfig.second.json::
SemanticDiagnostics::
Signatures::