ionic-team / ionic-v1

The repo for Ionic 1.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
192 stars 187 forks source link

White screen on Android 4.4 (Kitkat): Uncaught TypeError: Object function Number() { [native code] } has no method 'isInteger' #334

Open Defcon0 opened 6 years ago

Defcon0 commented 6 years ago

Short description of the problem:

Running my ionic 1.3.5 app on an Android 4.4 emulator results in a white app appearing after the splashscreen. On Android 5.0 emulator everything works fine.

The issue in the dev console is as follows:

Uncaught TypeError: Object function Number() { [native code] } has no method 'isInteger' ionic.bundle.js:17951

Code:


////////////////////////////////////
  // internal Injector
  ////////////////////////////////////

  function createInternalInjector(cache, factory) {

    function getService(serviceName, caller) {
      if (cache.hasOwnProperty(serviceName)) {
        if (cache[serviceName] === INSTANTIATING) {
          throw $injectorMinErr('cdep', 'Circular dependency found: {0}',
                    serviceName + ' <- ' + path.join(' <- '));
        }
        return cache[serviceName];
      } else {
        try {
          path.unshift(serviceName);
          cache[serviceName] = INSTANTIATING;
          return cache[serviceName] = factory(serviceName, caller);
        } catch (err) {
          if (cache[serviceName] === INSTANTIATING) {
            delete cache[serviceName];
          }
          throw err; // HERE THE ERROR IS THROWN
        } finally {
          path.shift();
        }
      }
    }

What behavior are you expecting?

Working app :-(

Which Ionic Version? 1.3.5

Run ionic info from terminal/cmd prompt: (paste output below)

[WARN] Error with ./www/lib/ionic/version.json file: FILE_NOT_FOUND, trying ./bower.json.

cli packages: (/home/me/customers/acme/my_proj/app/node_modules)

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    Cordova Platforms : android 6.3.0
    Ionic Framework   : ionic1 1.3.5

System:

    Android SDK Tools : 26.1.1
    Node              : v8.2.1
    npm               : 2.15.12 
    OS                : Linux 4.4

Environment Variables:

    ANDROID_HOME : /home/me/tools/android-sdk

Misc:

    backend : pro
azamalvi commented 6 years ago

Are you able to solve this issue?

Defcon0 commented 6 years ago

Unfortunately not :-( I ended up not supporting Android 4.4