(post pub build)应用位于http://mycommunity.org

查看Safari和Chrome中的控制台。在前者中,有:

[Error] Element name could not be inferred.
    b (polymer.js, line 12)
    (anonymous function) (mycommunity.org, line 5709)
[Error] Element name could not be inferred.
    b (polymer.js, line 12)
    (anonymous function) (mycommunity.org, line 5917)
[Error] Element name could not be inferred.
    b (polymer.js, line 12)
[Log] +WovenApp (index.html_bootstrap.dart.js, line 8353)
[Log] +AddStuff (index.html_bootstrap.dart.js, line 8353)
[Log] +InboxList (index.html_bootstrap.dart.js, line 8353)
[Error] SyntaxError: DOM Exception 12: An invalid or illegal string was specified. (platform.js, line 13)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (current-user, line 0)
[Error] TypeError: 'null' is not an object (evaluating 'String(a.constructor).match(/^\s*function\s*(\S*)\s*\(/)[1]') (index.html_bootstrap.dart.js, line 1283)

最佳答案

哇,罪魁祸首是我现在注释掉的那条线。 (我什至不确定该行的确切问题是什么。)

https://github.com/DaveNotik/dart-stack/commit/5131fb225d068e23435759913f72d5346d4efc70#diff-53e52681924d78ddb4512d6f988c91cbR85

隐藏您的 child ,隐藏您的妻子,您的整个Polymer应用程序都可能在没有dart2js的情况下崩溃而没有太多通知。好的,Git,我将其重置为可以工作的提交,并确定了突然不起作用的提交,并逐行进行了确认。

关于dart - 是什么导致此Polymer.dart在Safari和Chrome中行为不当?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25001976/

10-14 10:40