Polymer 应用程序无法在 Safari 中加载(1.0 之前的版本)

Polymer app won't load in Safari (pre-1.0)

一大堆错误,我的应用无法加载。在桌面设备 (OSX El Capitan) 和移动设备 (iOS9) 上是正确的。

http://d.pr/i/1lvBa

错误如:

TypeError: Attempting to change configurable attribute of unconfigurable property.

ReferenceError: Can't find variable: HTMLImports
    (anonymous function)
    atEndOfMicrotask

TypeError: document.registerElement is not a function. (In 'document.registerElement('polymer-element', {prototype: prototype})', 'document.registerElement' is undefined)

还有更多...

我的 Polymer (Dart) 版本是 0.16.3+3。

我假设你 运行 关注这个问题 https://github.com/dart-lang/polymer-dart/issues/538

It appears that problem is in outdated web_components, i got it all working on iOS 9 and OSX 10.11 by overriding web_components in my yams file by adding:

dependency_overrides: web_components: "^0.12.0+3"