【问题标题】:Ionic is throwing error after uploading build file to Firebase host将构建文件上传到 Firebase 主机后,Ionic 抛出错误
【发布时间】:2018-06-01 07:35:15
【问题描述】:

我正在尝试在浏览器上上传离子网络应用程序。我使用ionic build browser --prod --release 代码成功构建。 然后我使用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

谁能告诉我是什么问题?

你可以在https://restroapp-40ae7.firebaseapp.com/查看链接

【问题讨论】:

  • 我第一次部署网络应用程序。据我所知,我猜我的导入存在一些问题,因为它显示了我的主目录地址。有没有办法解决这个问题?

标签: angularjs cordova firebase ionic-framework build


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-05
    • 2015-08-16
    • 1970-01-01
    • 1970-01-01
    • 2020-09-05
    • 2012-07-11
    相关资源
    最近更新 更多