The TypeScript compiler couldn't be found

狂风中的少年 提交于 2019-12-24 03:37:20

问题


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


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/21984156/the-typescript-compiler-couldnt-be-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!