- Check version of tsc with
tsc --version
- Check version of typescript used in VSCode (in the statusbar next to the "TypeScript" file mode)
- If these two versions don't match (or if they match, but you're using the integrated VSCode version in VSCode) find the path to typescripts lib folder
which tsc
and the find the lib folder which contains tsserver.js and tsc.js - Add the correct sdk path to your VS Code configuration:
{
"typescript.tsdk": "/Users/$(whoami)/.nvm/versions/node/v8.9.1/lib/node_modules/typescript/lib"
}