This error just means that the version of the TypeScript compiler (tsc) you have installed for command line compiling does not match the version of TypeScript that VSCode uses for Intellisense. This may result in VSCode showing or not show showing errors in the editor compared to what tsc would show when it is used to compile the same code.
If you are only working in JS, don't worry about this error. I've disabled it for JS projects in VSCode 1.10
Two possible fixes for TypeScript projects:
Update your global tsc install
npm install -g [email protected]
Also make sure tsc on the command line points to the path of the newly installed version of TypeScript.
Use a local Version of TypeScript for VSCode Language Features
Install TypeScript locally:
npm install --save-dev [email protected]
and update your workspace settings to use this version of typescript in VSCode:
{
"typescript.tsdk": "./node_modules/typescript/lib"
}
Here are the complete instructions for configuring a local version of TypeScript:
https://code.visualstudio.com/Docs/languages/typescript#_using-newer-typescript-versions
Update March 6, 2017
Use TS 2.2.1 instead of 2.1.6 in example