Domanda

I am using Visual Studio 2012 and TypeScript version 0.9.5. I am also using web essentials 2.8. After I try to save the TypeScript file, it says:

  1. Compile Error.
  2. See error list for details
  3. The TypeScript compiler couldn't be found. Download http://www.typescriptlang.org/#Download

But even downloading latest version did not help. I checked some links but could not find the solution.

Right side panel of TypeScript files doesn't update properly

Cannot compile TypeScript files in Visual Studio 2012

Please help.

Thanks !!!

È stato utile?

Soluzione

You are using a really old version of web essentials with a new version of TypeScript. WebEssentials reduced its typescript support after v3.x so as to not conflict with Visual Studio tooling for TypeScript.

You can get the latest WebEssentials here : http://vswebessentials.com/download

Altri suggerimenti

I also had the error message "The typescript compiler couldn't be found". I had an older version of Web Essentials and when I installed version 3.7 the error message dissapeared but no js files where created. Then in: Tools->Options->Text Editor->Typescript->Project I checked "Compile on Save" (Automatically compile TypeScript files which are not part of a project) and then the js file got compiled.

Also when I look at the properties of the typescript file I now see TypeScriptCompile in Build Action. When I had the older version of Web Essentials I did not have the option "TypeScriptCompile" in Build Action.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top