Skip to content

TSC --showConfig throws error instead of listing configuration #48443

Open
@SetTrend

Description

@SetTrend

Bug Report

Given this tsconfig.json file:

{"include":  ["./*"]}

… and running npx tsc --showConfig, an error was returned:

error TS18003: No inputs were found in config file 'D:/Documents/Visual Studio-Projekte/NodeJs/WebPack/SourceMaps-Test/tsconfig.json'. Specified 'include' paths were '["./*"]' and 'exclude' paths were '[]'.

Expected behavior:

The parsed configuration file's content should have been output, but no compilation been done.

🔎 Search Terms

showConfig errors

🕗 Version & Regression Information

Version 4.6.3

⏯ Playground Link

– see above –

💻 Code

{"include":  ["./*"]}

🙁 Actual behavior

An error was returned:

error TS18003: No inputs were found in config file 'D:/Documents/Visual Studio-Projekte/NodeJs/WebPack/SourceMaps-Test/tsconfig.json'. Specified 'include' paths were '["./*"]' and 'exclude' paths were '[]'.

🙂 Expected behavior

The parsed configuration file's content should have been output, but no compilation been done.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions