Closed mobilityvalley closed 3 years ago
Try downgrading angular fire to 6.0.4
https://github.com/ionic-team/capacitor/issues/3907
Closing as itβs not a capacitor issue
There is a related thread on discussions https://github.com/ionic-team/capacitor/discussions/3871
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
I added Android platform with Capacitor.
I tried various version of "@angular/fire": "^6.1.4".
The app is crashing when launched with log:
E/Capacitor: JavaScript Error: {"type":"js.error","error":{"message":"Uncaught ReferenceError: globalThis is not defined","url":"http://localhost/vendor-es2015.js","line":68336,"col":1,"errorObject":"{}"}}
Capacitor Version
Latest Dependencies:
@capacitor/cli: 2.4.4 @capacitor/core: 2.4.4 @capacitor/android: 2.4.4 @capacitor/electron: 2.4.4 @capacitor/ios: 2.4.4
Installed Dependencies:
@capacitor/cli 2.4.3 @capacitor/core 2.4.3 @capacitor/android 2.4.3 @capacitor/ios 2.4.3 @capacitor/electron not installed
[success] Android looking great! π Found 1 Capacitor plugin for ios: @capacitor-community/fcm (1.0.8) [success] iOS looking great! π
Platform(s)
Android
Current Behavior
White screen
Expected Behavior
The app should launch
Code Reproduction
Other Technical Details
npm --version
output:node --version
output:pod --version
output (iOS issues only):Additional Context