简体   繁体   中英

Ionic v3 + Capacitor : ERROR TypeError: Object(...)

I just moved an ionic v3 app from Cordova to Capacitor. The iOS build worked right away. However, it's been nearly a week since I am having troubles running the app on Android.

I currently do not have any cordova plugin or npm package about Firebase. When I run the app from Android Studio, I get the following error: 在此处输入图片说明

I looked at many posts like this one : https://forum.ionicframework.com/t/typeerror-object-is-not-a-function/130589/13 but nothing solved my issue.

However, I have seen some posts online saying that this kind of error could be related to an error in the app modules provider.

That got me thinking: Do I need to add anything to the providers in order to get capacitor android working? The app run perfectly on Cordova and Capacitor iOS.

Thank you so much for your time!

I was using a custom plugin that was using an older version of firebase (causing a google services version conflict).

I also downloaded an ionic v4 plugin! This causes the famous Object() is not a function error!

Hope this post can help!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM