Cannot compile TypeScript files in Visual Studio 2012

前端 未结 7 1207
长发绾君心
长发绾君心 2020-12-29 08:45

I downloaded and installed TypeScript extension for VS 2012, I got my first sample compiles by manually dragging the ts file onto the tsc.exe file! because

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 09:29

    Please check if you have invalid TypeScript. There are some TypeScript errors that don't show up in the Error List, but they prevent TypeScript Compile-On-Save and show a Output generation failed message in the Visual Studio status bar.

    These are the TypeScript errors that can cause this:

    • exporting a class which is not inside of a module (v 0.9.5).

    Please let me know if there are more such errors, I'll add them here.

提交回复
热议问题