Webstorm - pub:build之后的错误

时间:2016-06-14 12:22:54

标签: dart dart-html

我在WebStorm EAP中编写了简单的示例代码

void main() {
  var main = new Element.html('<div class="main"></div>');
  document.body.children.add(main);
}
在Dartium中的

- 一切都很好,在pub:debug - - 一切都很好, 但是在pub:build项目之后,在realize / index.html中我没有看到任何东西,只有控制台中的错误:     &#34; main.dart.js:1159 Uncaught TypeError:无法读取属性&#39; at&#39; of null&#34;

请向我解释是什么问题,以及如何获得正确的构建文件。

0 个答案:

没有答案