# globalThis is not defined

**URL:** <https://forum.ionicframework.com/t/globalthis-is-not-defined/239569>\
**Category:** cordova\
**Created:** [February 7, 2024, 3:00pm UTC](https://forum.ionicframework.com/t/globalthis-is-not-defined/239569 "2024-02-07T15:00:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zavhier](https://avatars.discourse-cdn.com/v4/letter/z/82dd89/32.png) [@zavhier](https://forum.ionicframework.com/u/zavhier)\
**Post date:** [February 7, 2024, 3:00pm UTC](https://forum.ionicframework.com/t/globalthis-is-not-defined/239569/1 "2024-02-07T15:00:07Z")

</div>

hi people,  
I am developing an app with ionic v7 and cordova, this app works perfect in localhost, olso yes I generate a apk .  
but when I want test operation this app in emulatation whith chrome://inspect/#diveces .

this app thows error

ReferenceError: globalThis is not defined

I continue this recomendation

> [@ReferenceError: globalThis is not defined](https://forum.ionicframework.com/t/referenceerror-globalthis-is-not-defined/201520):
>
> Hey guys its been weeks that my app was running great in broswer as serve or serve -l and on some android devices as build -prod and build as apk or run. but not running on other devices like android v8.1 it was just the blank white screen now i found a way to remote debugg it in chrome devtools, this is the error output: ReferenceError: globalThis is not defined at Module.\<anonymous\> (vendor-es5.js:158248) at Module.spgP (vendor-es5.js:158400) at \_\_webpack\_require\_\_ (runtime-es5.…

but no works.

you can help.  
thkk

---

<div class="post-metadata">

**Author:** ![Hills90210](https://avatars.discourse-cdn.com/v4/letter/h/57b2e6/32.png) [@Hills90210](https://forum.ionicframework.com/u/Hills90210)\
**Post date:** [February 7, 2024, 3:47pm UTC](https://forum.ionicframework.com/t/globalthis-is-not-defined/239569/2 "2024-02-07T15:47:27Z")

</div>

You aren’t providing enough information. [How do I ask a good question? - Help Center - Stack Overflow](https://stackoverflow.com/help/how-to-ask)

---

<div class="post-metadata">

**Author:** ![julio-ionic](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@julio-ionic](https://forum.ionicframework.com/u/julio-ionic)\
**Post date:** [February 7, 2024, 4:33pm UTC](https://forum.ionicframework.com/t/globalthis-is-not-defined/239569/3 "2024-02-07T16:33:34Z")

</div>

> [@Problems with white screen after splash screen on android 7 and below \\ Ionic 7 with Angular](https://forum.ionicframework.com/t/problems-with-white-screen-after-splash-screen-on-android-7-and-below-ionic-7-with-angular/238019/2):
>
> Android emulators use old WebView versions that latest Ionic and Angular don’t support. Ionic 7 supports Android 5.1+ with Chromium 79+ Angular supports “2 most recent major versions”, it’s not very clear what they mean by that, but it’s clear they won’t support old WebView versions. To make apps work in older WebViews, you can change the supported Chrome versions in .browserlistrc file like this: Chrome \>=61 ChromeAndroid \>=61 Note that you can’t go lower than 61, if you set it to 60 (the …
