Visual Studio TypeScript - 堆栈外 Space

Visual Studio TypeScript - Out of Stack Space

我们将 VS 2013 与 TypeScript 1.4 一起使用,并且在转译过程中开始出现以下 'out of stack space' 错误:

1>------ Build started: Project: client, Configuration: Debug Any CPU ------
1>VSTSC : tsc.js(15645, 21) JavaScript runtime error : Out of stack space
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

似乎很少有其他人提及此错误,错误消息也没有给我们提供太多可以继续的信息。有什么想法吗?

这似乎正是消息所指示的。我们显然有太多的字符串常量。一旦我们删除了那些 'out of stack space' 就不再发生了。