Can I set up typescript.tsdk relative to my project dir/tsconfig file? It looks like this option works only with an absolute path.
In your project's .vscode/settings.json
:
{
"typescript.tsdk": "node_modules/typescript/lib"
}
You can set in setting.json like this:
"typescript.tsdk": "node_modules/typescript/bin"
But this break ts files that no have typescript installed by npm in root folder. The best solution I have found, was:
"typescript.tsdk": "/Users/<MyUser>/AppData/Roaming/npm/node_modules/typescript/bin"
Still work on ts projects without typescript installed localy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With