Search code examples
visual-studio-codetsc

Visual Studio Code - Strangely Typescript compiler (tsc) not exists


I'm getting this error pressing Ctrl+Shift+B trying to compiling a Typescript file:

(Translated)

"tsc" is not recognized as an internal or external command...

ScreenShot for the problem

It's not supposed to be already included???


Solution

  • This was my solution. Still it's a little bit "out of my range".

    1. Download TypeScript for Visual Studio 2015
    2. Add the installed folder to Path example (In my case, it worked):

    SET PATH=%PATH%;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.8\

    PS: I don't why but I had to replace the second parameter of the "args" setting: "${workspace}" instead of "." in task.json