Where src/client/tsconfig.json and src/server/tsconfig.json both declare "extends": "../../tsconfig.base.json".
When I pass src/client/tsconfig.json to TypeScript, normally it extends the configuration specific in my project root tsconfig.base.json. However, when I pass this file to typecheckPlugin like:
I receive the error error TS5083: Cannot read file '/home/USER/tsconfig.base.json'. It seems to be resolving the path from my project root, instead of from the location of the tsconfig.json file. Passing the file as an absolute path results in the same behavior. How can I get it to correctly resolve the location of tsconfig.base.json?
These are some great plugins, thank you for creating and maintaining them!
I have a project structure like:
Where
src/client/tsconfig.json
andsrc/server/tsconfig.json
both declare"extends": "../../tsconfig.base.json"
.When I pass
src/client/tsconfig.json
to TypeScript, normally it extends the configuration specific in my project roottsconfig.base.json
. However, when I pass this file totypecheckPlugin
like:I receive the error
error TS5083: Cannot read file '/home/USER/tsconfig.base.json'.
It seems to be resolving the path from my project root, instead of from the location of thetsconfig.json
file. Passing the file as an absolute path results in the same behavior. How can I get it to correctly resolve the location oftsconfig.base.json
?These are some great plugins, thank you for creating and maintaining them!