The TypeScript compiler couldn't be found

2019-07-11 00:04发布

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 !!!

2条回答
地球回转人心会变
2楼-- · 2019-07-11 00:23

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

查看更多
smile是对你的礼貌
3楼-- · 2019-07-11 00:37

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.

查看更多
登录 后发表回答