0

我找不到我的应用程序在使用 dart2js 编译为 JavaScript 时无法运行的原因。我曾尝试使用 Google DevTools 调试我编译的 JavaScript 应用程序,但发现很难同时理解调试器和 JavaScript 代码。你可以在GitHub 上找到我的网络应用程序。我怀疑编译的 JavaScript 代码和导入的第三方 JS 库(如 jquery)之间存在冲突,但不确定。我非常感谢您的帮助。

4

1 回答 1

1

The easiest is probably to add a few print statements into your code. With binary search it should be relatively easy to figure out when the VM and dart2js diverge.

Please report back, what the reason was and/or file a bug at http://dartbug.com/ if you believe that dart2js did it wrong.

Solution (as reported by OP): "dart.js should come after [the] app script line".

于 2013-12-15T03:33:44.287 回答