• 常见错误
    • 常见错误信息
      • “tsc.exe” exited with error code 1.
      • external module XYZ cannot be resolved

    常见错误

    下面列举了一些常见的,令人很费解的错误信息。当你在使用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