在我的android设备上进行生产测试时,出现以下错误:
Uncaught ReferenceError: Must call super constructor in derived class before
accessing 'this' or returning from derived constructor
at new <anonymous> (main.js:1)
at t.create (vendor.js:1)
at vendor.js:1
at t.invoke (polyfills.js:3)
at Object.onInvoke (vendor.js:1)
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at t.run (vendor.js:1)
at e._bootstrapModuleFactoryWithZone (vendor.js:1)
at e.bootstrapModuleFactory (vendor.js:1)
问题是我不知道原因是什么,因为无法从此错误消息中分辨出来。
我的组件列表:
Pages:
LoginPage <--- starting page
SignupPage,
CalendarPage,
SettingsPage,
WorkTimePage,
RestorePasswordPage,
ChangePasswordPage,
NotificationsPage,
TrackerPage,
EmptyTrackerPage,
CreateProjectContentPage,
MenuTakenSlotContentPage,
EmptySlotContentPage,
TakenSlotContentPage,
ColorPickerContentPage,
ProjectSelectContentPage,
TimeConfirmContentPage,
MenuOfflineWorkContentPage,
CalendarEventSelectContentPage,
AgreementContentPage,
ProjectsPage,
IntroductionPage,
ProjectDetailsContentPage,
WeekSwapContentPage,
WorkTimeSwapContentPage,
SettingsSelectContentPage,
ModalPage
Providers:
Settings,
Auth,
Data,
Connectivity
我该如何解决?或者至少如何检查出什么问题?
这是发生错误的地方:
constructor(t) {} <----- here
get _BrowserXhr_29() {
return null == this.__BrowserXhr_29 && (this.__BrowserXhr_29 = new p.c),
this.__BrowserXhr_29
}