Still getting issue "TS18003: No inputs were found in config file 'tsconfig.json'"
See original GitHub issueHi,
I am currently building a more-or-less zero config bundler for our company’s internal usage.
For this I want to add TypeScript support using ts-loader
without needing any of our dozens of projects to add a tsconfig.json
.
Expected Behaviour
It should just work, as there is an option in the plugin to set a custom path for the tsconfig.json
.
Actual Behaviour
It doesn’t work and errors out with
TS18003: No inputs were found in config file ‘tsconfig.json’. Specified ‘include’ paths were ‘[“**/*”]’ and ‘exclude’ paths were ‘[]’.
Steps to Reproduce the Problem
I installed your vanilla
example and did the following adjustments:
-
move
tsconfig.json
toexample/tsconfig.json
-
change the webpack config to point to the new config file:
module: { rules: [ { test: /\.tsx?$/, loader: 'ts-loader', options: { configFile: __dirname + "/test/tsconfig.json" // <- this is new } } ] },
Location of a Minimal Repository that Demonstrates the Issue.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9 (8 by maintainers)
Top Results From Across the Web
tsconfig.json: Build:No inputs were found in config file
I have an ASP.NET core project and I'm getting this error when I try to build it: error TS18003: Build:No inputs were found...
Read more >error TS18003: No inputs were found in config file 'tsconfig ...
can't parsing tsconfig.json error TS18003: No inputs were found in config file ... I am getting the same error I also have .ts...
Read more >No inputs were found in config file in TypeScript | bobbyhadz
The error "No inputs were found in config file" occurs when we try to build a project that does not contain any TypeScript...
Read more >tsconfig.json: Build:No inputs were found in config file
I have an ASP.NET core project and I'm getting this error when I try to build it: error TS18003: Build:No inputs were found...
Read more >tsconfig.json: Build:No inputs were found in config file - iTecNote
I have an ASP.NET core project and I'm getting this error when I try to build it: error TS18003: Build:No inputs were found...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@johnnyreilly it actually worked using context, thank you! I was already desparate, as nothing seemed to work. Thank you very much for the fast answer! I will send a PR though, to suggest an improvement in the docs.
@theironcook I think you have an other issue, I think you are using invalid babel loader syntax. There are two variations (there are actually more, but two that matter):
or 2) with a list of loaders:
You have a mix of both, but need to use
loader
as key. That is what the error message is trying to tell you, they literally mean the object keyloader
inI will close this issue, as we now have an open PR to keep the discussion going in #733