聚合物不适用于iOS,即使包含polyfills

聚合物不适用于iOS,即使包含polyfills,ios,polymer,mobile-safari,polymer-1.0,polyfills,Ios,Polymer,Mobile Safari,Polymer 1.0,Polyfills,我正试图在iOS 9.1上的Safari中运行我的Polymer 1.0应用程序,但它无法呈现任何内容。即使 <script src="../bower_components/webcomponentsjs/webcomponents.min.js"></script> 在该函数的第三行激发: _forceNarrowChanged: function() { // set the narrow mode only if we reached the `re

我正试图在iOS 9.1上的Safari中运行我的Polymer 1.0应用程序,但它无法呈现任何内容。即使

<script src="../bower_components/webcomponentsjs/webcomponents.min.js"></script>
在该函数的第三行激发:

  _forceNarrowChanged: function() {
    // set the narrow mode only if we reached the `responsiveWidth`
    this._responsiveChange(this.forceNarrow || this.$.mq.queryMatches);
  },
这个错误是:

TypeError: undefined is not an object (evaluating 'this.$.mainContainer')
它在webcomponents库的某个地方被激发

还将触发WebComponentsReady事件(使用调试控制台日志语句进行测试)

我使用硫化grunt任务将所有脚本和样式内联到一个html文件中。我有什么遗漏吗

提前谢谢

更新:我试着用大口大口大口喝聚合物起动器,效果很好。我将尝试禁用应用程序的某些部分以隔离问题


更新2:我设法解决了这个问题,将所有bower_组件从polymer starter kit转移到我的项目中,似乎是更新版本或类似版本中修复的错误。

您能否提供有关导致错误的聚合物元素的更多代码详细信息第一个问题中描述的js错误在抽屉面板的代码中。您能否发布更新作为答案?这样更适合这个网站的格式。
TypeError: undefined is not an object (evaluating 'this.$.mainContainer')