Closed callenAUS closed 1 year ago
Hello,
The tsserver needs to support that.
There was this open issue for typescript: https://github.com/microsoft/TypeScript/issues/11224
They decided to not implement it https://github.com/microsoft/TypeScript/issues/11224#issuecomment-250595304
But that should not be a blocker for you.
The current workaround is to have a tsconfig.json file at the root and specify the extends. https://github.com/microsoft/vscode/issues/18140#issuecomment-270589109
Also know that since typescript v5.0 the tsconfig.extends accepts an array. https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#supporting-multiple-configuration-files-in-extends
I will choose the issue, because there is nothing that LSP-typescript can do about it.
I have a Node/Express project with static JS files inside. Due to this I have 2 tsconfig files in a folder at the root directory. I think this might be the root cause.
Compiling with
npx "tsc" "--project" "./tsconfigs/browser.json"
works without issue. However the plugin seems to have issues with me switching my imports from relative to absolute paths.The specific error that is thrown in sublime is
Cannot find module '/js/lib/example.js' or its corresponding type declarations.
browser.json
node.json