-
-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Still getting issue "TS18003: No inputs were found in config file 'tsconfig.json'" #732
Comments
Please note: moving the |
Does this context option help? https://github.com/TypeStrong/ts-loader/blob/master/README.md#context-string-defaultundefined If not and you'd like to investigate this I'd appreciate that; I don't have much time to spare right now |
Just tried to use the context option you described like this
Got the same error :( Error: options/query provided without loader (use loader + options) in { The file tsconfig.client.json is in the specified directory. It exists etc. - just not working |
@christiantinauer do you have any inights? I seem to recall you were trying to solve a similar problem with |
@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! @theironcook I think you have an other issue, I think you are using invalid babel loader syntax.
{
test: /\.ts?$/,
loader: 'ts-loader',
exclude: /node_modules/,
options: {
context: __dirname,
configFile: 'tsconfig.client.json'
},
} or 2) with a list of loaders: {
test: /\.ts?$/,
exclude: /node_modules/,
use: [
{
loader: 'ts-loader',
options: {
context: __dirname,
configFile: 'tsconfig.client.json'
},
}
]
} You have a mix of both, but need to use
|
@apfelbox happy that the option solves your problem. How can the docs be improved? |
That is a good idea as I think there will be others who try to change the path to an outside tsconfig file and will run into the same problems. I guess @johnnyreilly will be happy to accept a pull request from you. |
I will close this issue, as we now have an open PR to keep the discussion going in #733 |
Hi,
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 atsconfig.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
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:
Location of a Minimal Repository that Demonstrates the Issue.
The text was updated successfully, but these errors were encountered: