ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚑️
https://capacitorjs.com
MIT License
12.13k stars 1k forks source link

bug: Uncaught ReferenceError: globalThis is not defined #3919

Closed mobilityvalley closed 3 years ago

mobilityvalley commented 3 years ago

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! πŸ‘Œ

PASTE OUTPUT HERE

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

jcesarmobile commented 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

jcesarmobile commented 3 years ago

There is a related thread on discussions https://github.com/ionic-team/capacitor/discussions/3871

ionitron-bot[bot] commented 1 year ago

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.