常见编译错误

优质
小牛编辑
144浏览
2023-12-01

下面列出了一些在使用TypeScript语言和编译器过程中常见的容易让人感到困惑的错误信息。

"tsc.exe" exited with error code 1

修复:

  • 检查文件编码,确保为UTF-8 - https://typescript.codeplex.com/workitem/1587

external module XYZ cannot be resolved

修复:

  • 检查模块路径是否大小写敏感 - https://typescript.codeplex.com/workitem/2134