将构建文件上传到Firebase主机后,Ionic会抛出错误

时间:2017-12-18 22:22:23

标签: angularjs cordova firebase ionic-framework build

我正在尝试在浏览器上传离子网页应用。我使用firebase deploy代码成功构建。 然后我使用ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'call' of undefined TypeError: Cannot read property 'call' of undefined at __webpack_require__ (main.js:50) at eval (C:/Users/allud/Code/webApp/src_lazy:44) at t.invoke (polyfills.js:3) at Object.onInvoke (C:/Users/allud/Code/webApp/node_modules/@angular/core/@angular/core.es5.js:4354) at t.invoke (polyfills.js:3) at r.run (polyfills.js:3) at polyfills.js:3 at t.invokeTask (polyfills.js:3) at Object.onInvokeTask (C:/Users/allud/Code/webApp/node_modules/@angular/core/@angular/core.es5.js:4345) at t.invokeTask (polyfills.js:3) at __webpack_require__ (main.js:50) at eval (C:/Users/allud/Code/webApp/src_lazy:44) at t.invoke (polyfills.js:3) at Object.onInvoke (C:/Users/allud/Code/webApp/node_modules/@angular/core/@angular/core.es5.js:4354) at t.invoke (polyfills.js:3) at r.run (polyfills.js:3) at polyfills.js:3 at t.invokeTask (polyfills.js:3) at Object.onInvokeTask (C:/Users/allud/Code/webApp/node_modules/@angular/core/@angular/core.es5.js:4345) at t.invokeTask (polyfills.js:3) at c (polyfills.js:3) at Object.reject (polyfills.js:3) at NavControllerBase._fireError (C:/Users/allud/Code/webApp/node_modules/ionic-angular/navigation/nav-controller-base.js:327) at NavControllerBase._failed (C:/Users/allud/Code/webApp/node_modules/ionic-angular/navigation/nav-controller-base.js:315) at eval (C:/Users/allud/Code/webApp/node_modules/ionic-angular/navigation/nav-controller-base.js:370) at t.invoke (polyfills.js:3) at Object.onInvoke (C:/Users/allud/Code/webApp/node_modules/@angular/core/@angular/core.es5.js:4354) at t.invoke (polyfills.js:3) at r.run (polyfills.js:3) at polyfills.js:3 defaultErrorLogger @ C:/Users/allud/Code/webApp/node_modules/@angular/core/@angular/core.es5.js:1289 ErrorHandler.handleError @ C:/Users/allud/Code/webApp/node_modules/@angular/core/@angular/core.es5.js:1349 IonicErrorHandler.handleError @ C:/Users/allud/Code/webApp/node_modules/ionic-angular/util/ionic-error-handler.js:65 next @ C:/Users/allud/Code/webApp/node_modules/@angular/core/@angular/core.es5.js:4983 schedulerFn @ C:/Users/allud/Code/webApp/node_modules/@angular/core/@angular/core.es5.js:4056 SafeSubscriber.__tryOrUnsub @ C:/Users/allud/Code/webApp/node_modules/rxjs/Subscriber.js:238 SafeSubscriber.next @ C:/Users/allud/Code/webApp/node_modules/rxjs/Subscriber.js:185 Subscriber._next @ C:/Users/allud/Code/webApp/node_modules/rxjs/Subscriber.js:125 Subscriber.next @ C:/Users/allud/Code/webApp/node_modules/rxjs/Subscriber.js:89 Subject.next @ C:/Users/allud/Code/webApp/node_modules/rxjs/Subject.js:55 EventEmitter.emit @ C:/Users/allud/Code/webApp/node_modules/@angular/core/@angular/core.es5.js:4042 NgZone.triggerError @ C:/Users/allud/Code/webApp/node_modules/@angular/core/@angular/core.es5.js:4414 onHandleError @ C:/Users/allud/Code/webApp/node_modules/@angular/core/@angular/core.es5.js:4375 t.handleError @ polyfills.js:3 r.runGuarded @ polyfills.js:3 (anonymous) @ polyfills.js:3 n.microtaskDrainDone @ polyfills.js:3 o @ polyfills.js:3 Promise resolved (async) r @ polyfills.js:3 t.scheduleTask @ polyfills.js:3 onScheduleTask @ polyfills.js:3 t.scheduleTask @ polyfills.js:3 r.scheduleTask @ polyfills.js:3 r.scheduleMicroTask @ polyfills.js:3 f @ polyfills.js:3 c @ polyfills.js:3 (anonymous) @ polyfills.js:3 webpackJsonpCallback @ main.js:22 (anonymous) @ 1.main.js:1 部署了应用程序 该应用程序也成功上传。现在,当我尝试登录时,它在浏览器控制台中显示错误

    <div class="columnCollection">
        <div class="column">
            Column Name :
            <input class="columnName" type="text" name="ColumnName">

            Types:
            <select class="types"></select>

            Params:
            <select class="parameteria"></select>
   </div>

有人可以告诉我们问题是什么吗?

您可以查看https://restroapp-40ae7.firebaseapp.com/

上的链接

1 个答案:

答案 0 :(得分:0)

使用最新版本更新CLI,然后再次构建应用程序。现在工作正常。