TypeError:iterator1.next不是函数

时间:2016-06-29 14:27:16

标签: angular firebase firebase-realtime-database ionic2

空白Ionic Prjoect

我在添加firebase脚本时遇到异常

<script src="https://www.gstatic.com/firebasejs/3.1.0/firebase.js"></script>

到我空的Ionic 2 Beta.10项目

从Chrome复制错误日志:

EXCEPTION:./ MyApp类中的错误MyApp - 内联模板:0:9

browser_adapter.js:77 TypeError: iterator1.next is not a function
at Object.areIterablesEqual (collection.js:314)
at Object.devModeEqual (change_detection_util.js:9)
at checkBinding (view_utils.js:125)
at DebugAppView._View_MyApp0.detectChangesInternal (MyApp.template.js:38)
at DebugAppView.AppView.detectChanges (view.js:234)
at DebugAppView.detectChanges (view.js:339)
at DebugAppView.AppView.detectViewChildrenChanges (view.js:260)
at DebugAppView.AppView.detectChangesInternal (view.js:245)
at DebugAppView.AppView.detectChanges (view.js:234)
at DebugAppView.detectChanges (view.js:339)

Error in image
注意:这在Mac System Chrome中没有任何例外情况,但在Linux Chrome中它提供了这种例外。

我的系统配置:


Cordova CLI:6.2.0
Ionic Framework版本:2.0.0-beta.10
Ionic CLI版本:2.0.0-beta.32
Ionic App Lib版本:2.0.0-beta.18
OS:分销商ID:Ubuntu描述:Ubuntu 14.04.4 LTS
节点版本:v5.6.0
gulp版本:3.9.1

解决了问题: 在index.html中,将内容放在&lt; body&gt;下像这样的标签:

<script src="build/js/es6-shim.min.js"></script>
<script src="build/js/Reflect.js"></script>
<script src="build/js/zone.js"></script>
<script src="https://www.gstatic.com/firebasejs/live/3.0/firebase.js"></script>
<script src="build/js/app.bundle.js"></script>

0 个答案:

没有答案