Skip to content

Instantly share code, notes, and snippets.

@flipace
Created June 5, 2018 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flipace/4ec19f2a6ab1a3c1056ce48f85e33340 to your computer and use it in GitHub Desktop.
Save flipace/4ec19f2a6ab1a3c1056ce48f85e33340 to your computer and use it in GitHub Desktop.
Typescript Issue Debugging
  1. Check version of tsc with tsc --version
  2. Check version of typescript used in VSCode (in the statusbar next to the "TypeScript" file mode)
  3. 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
  4. 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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment