Polymer应用程式不会载入Safari(1.0版之前) [英] Polymer app won't load in Safari (pre-1.0)
本文介绍了Polymer应用程式不会载入Safari(1.0版之前)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
加载错误,我的应用程式无法载入。在桌面(OSX El Capitan)和手机(iOS9)上为True。
A load of errors, and my app won't load. True on desktop (OSX El Capitan) and mobile (iOS9).
错误类似:
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。
My Polymer (Dart) version is 0.16.3+3.
推荐答案
我假设遇到这个问题 https://github.com/dart-lang/polymer-dart/issues/538
发现问题是过时的web_components,我得到所有
在iOS 9和OSX 10.11通过覆盖web_components在我的yams
文件中添加:
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
dependency_overrides: web_components: "^0.12.0+3"
这篇关于Polymer应用程式不会载入Safari(1.0版之前)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文