Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Version mismatch global tsc 1.0.3.0 != VS Code's language service (2.2.1)

I have this popup presented: enter image description here

I tried to install the proper tsc by following commands in cmd:

npm install --g --save-dev [email protected] and npm install --save-dev [email protected]

but it didn't help, the popup still shows on VS Code startup.

like image 799
Yoda Avatar asked Dec 08 '22 18:12

Yoda


2 Answers

It turns out the problem was that I also had C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\; Simply removing (delete the folder 1.0) that from my path sorted the issue. When I run

tsc --version

it now shows me 2.6.2

like image 91
Ricardo Villegas Avatar answered Dec 11 '22 08:12

Ricardo Villegas


Open the command prompt and type where tsc

This will give you a list of typescript versions your PATH and global settings are pointing to.

Go to the path: C:\xxxxx\Microsoft SDKs\TypeScript

then delete the older version folder except latest one.

like image 43
sangram mohanta Avatar answered Dec 11 '22 09:12

sangram mohanta