title: Ionic Android App stuck on white screen after upgrading to Angular 12. Error: goog.getLocale is not a function
body: <p>I recently tried upgrading Angular 11 to 12 in my Ionic App. It all went well, and the app is running with no errors in the browser.
  However, when I tried to run it on an Android phone, after the splash-screen disappears, the app gets stuck in a white screen.</p>
  <p>I tried using <code>chrone://inspect</code> tool and see if I get any errors and this showed up:</p>
  <p><a href="https://i.stack.imgur.com/r0Xf0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r0Xf0.png" alt="enter image description here" /></a></p>
  <p>I also get the same error on the Android Logcat: <code>E/Capacitor/Console: File: http://localhost/vendor-es2015.js - Line 15729 - Msg: ERROR TypeError: goog.getLocale is not a function</code></p>
  <p>I tried adding timeout to the splash-screen, updating libraries, deleting node_modules and reinstalling them, but nothing worked. I can't find much info on the web about this error.</p>
  <p>Can anyone tell me what this error means or why is the app stuck here? It works well if I go back to Angular 11.</p>
  <p>My package.json looks like this:</p>
  <pre><code>&quot;dependencies&quot;: {
      &quot;@agm/core&quot;: &quot;^3.0.0-beta.0&quot;,
      &quot;@angular/common&quot;: &quot;~12.2.3&quot;,
      &quot;@angular/core&quot;: &quot;~12.2.3&quot;,
      &quot;@angular/forms&quot;: &quot;~12.2.3&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~12.2.3&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~12.2.3&quot;,
      &quot;@angular/router&quot;: &quot;~12.2.3&quot;,
      &quot;@capacitor-community/background-geolocation&quot;: &quot;^0.3.11&quot;,
      &quot;@capacitor/android&quot;: &quot;^2.4.6&quot;,
      &quot;@capacitor/core&quot;: &quot;^2.4.6&quot;,
      &quot;@capacitor/ios&quot;: &quot;^2.4.6&quot;,
      &quot;@ionic-native/android-permissions&quot;: &quot;^5.30.0&quot;,
      &quot;@ionic-native/clipboard&quot;: &quot;^5.31.1&quot;,
      &quot;@ionic-native/core&quot;: &quot;^5.30.0&quot;,
      &quot;@ionic-native/device&quot;: &quot;^5.31.1&quot;,
      &quot;@ionic-native/diagnostic&quot;: &quot;^5.32.1&quot;,
      &quot;@ionic-native/insomnia&quot;: &quot;^5.30.0&quot;,
      &quot;@ionic-native/launch-navigator&quot;: &quot;^5.30.0&quot;,
      &quot;@ionic-native/location-accuracy&quot;: &quot;^5.30.0&quot;,
      &quot;@ionic-native/market&quot;: &quot;^5.33.1&quot;,
      &quot;@ionic-native/mobile-accessibility&quot;: &quot;^5.36.0&quot;,
      &quot;@ionic-native/splash-screen&quot;: &quot;^5.30.0&quot;,
      &quot;@ionic-native/status-bar&quot;: &quot;^5.30.0&quot;,
      &quot;@ionic/angular&quot;: &quot;^5.6.14&quot;,
      &quot;@ionic/pwa-elements&quot;: &quot;^3.0.2&quot;,
      &quot;@ngrx/effects&quot;: &quot;^10.0.0&quot;,
      &quot;@ngrx/entity&quot;: &quot;^10.0.0&quot;,
      &quot;@ngrx/schematics&quot;: &quot;^10.0.0&quot;,
      &quot;@ngrx/store&quot;: &quot;^10.0.0&quot;,
      &quot;@ngrx/store-devtools&quot;: &quot;^10.0.0&quot;,
      &quot;@ngx-translate/core&quot;: &quot;^12.1.2&quot;,
      &quot;@ngx-translate/http-loader&quot;: &quot;^6.0.0&quot;,
      &quot;agm-direction&quot;: &quot;^0.8.9&quot;,
      &quot;cordova-clipboard&quot;: &quot;^1.3.0&quot;,
      &quot;cordova-plugin-actionsheet&quot;: &quot;^2.3.3&quot;,
      &quot;cordova-plugin-android-permissions&quot;: &quot;^1.1.2&quot;,
      &quot;cordova-plugin-device&quot;: &quot;^2.0.3&quot;,
      &quot;cordova-plugin-dialogs&quot;: &quot;^2.0.2&quot;,
      &quot;cordova-plugin-insomnia&quot;: &quot;^4.3.0&quot;,
      &quot;cordova-plugin-market&quot;: &quot;^1.2.0&quot;,
      &quot;cordova-plugin-network-information&quot;: &quot;git+https://github.com/apache/cordova-plugin-network-information.git&quot;,
      &quot;cordova-plugin-request-location-accuracy&quot;: &quot;^2.3.0&quot;,
      &quot;cordova.plugins.diagnostic&quot;: &quot;^6.0.3&quot;,
      &quot;core-js&quot;: &quot;^3.8.3&quot;,
      &quot;moment&quot;: &quot;^2.28.0&quot;,
      &quot;ngx-signaturepad&quot;: &quot;^0.0.9&quot;,
      &quot;phonegap-plugin-mobile-accessibility&quot;: &quot;^1.0.5&quot;,
      &quot;rxjs&quot;: &quot;^6.6.3&quot;,
      &quot;tslib&quot;: &quot;^2.0.1&quot;,
      &quot;uk.co.workingedge.phonegap.plugin.launchnavigator&quot;: &quot;^5.0.5&quot;,
      &quot;zone.js&quot;: &quot;~0.11.4&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;~12.2.3&quot;,
      &quot;@angular/cli&quot;: &quot;^12.2.3&quot;,
      &quot;@angular/compiler&quot;: &quot;~12.2.3&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~12.2.3&quot;,
      &quot;@angular/language-service&quot;: &quot;~12.2.3&quot;,
      &quot;@babel/core&quot;: &quot;^7.10.2&quot;,
      &quot;@capacitor/cli&quot;: &quot;2.4.6&quot;,
      &quot;@ionic/angular-toolkit&quot;: &quot;^4.0.0&quot;,
      &quot;@storybook/addon-actions&quot;: &quot;^5.3.19&quot;,
      &quot;@storybook/addon-knobs&quot;: &quot;^5.3.19&quot;,
      &quot;@storybook/addon-links&quot;: &quot;^5.3.19&quot;,
      &quot;@storybook/addon-notes&quot;: &quot;^5.3.19&quot;,
      &quot;@storybook/addon-options&quot;: &quot;^5.3.19&quot;,
      &quot;@storybook/addons&quot;: &quot;^5.3.19&quot;,
      &quot;@storybook/angular&quot;: &quot;^5.3.19&quot;,
      &quot;@types/googlemaps&quot;: &quot;3.39.12&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.3.8&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
      &quot;@types/node&quot;: &quot;^12.11.1&quot;,
      &quot;agm-overlays&quot;: &quot;^2.0.0&quot;,
      &quot;babel-loader&quot;: &quot;^8.1.0&quot;,
      &quot;codelyzer&quot;: &quot;^6.0.1&quot;,
      &quot;jasmine-core&quot;: &quot;~3.4.0&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~4.2.1&quot;,
      &quot;karma&quot;: &quot;^6.3.4&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;~2.2.0&quot;,
      &quot;karma-coverage-istanbul-reporter&quot;: &quot;~2.0.1&quot;,
      &quot;karma-jasmine&quot;: &quot;~2.0.1&quot;,
      &quot;karma-jasmine-html-reporter&quot;: &quot;^1.4.0&quot;,
      &quot;protractor&quot;: &quot;^7.0.0&quot;,
      &quot;ts-node&quot;: &quot;~7.0.0&quot;,
      &quot;tslint&quot;: &quot;~6.1.0&quot;,
      &quot;typescript&quot;: &quot;4.3.5&quot;
    },
  </code></pre>
  <p>Thank-you!</p>