Uncaught TypeError: Cannot convert undefined or null to object

image

Hi Meteorites,

I have been working on an ionic meteor project the can be found here: GitHub - Urigo/Ionic2CLI-Meteor-WhatsApp: WhatsApp Clone tutorial with Ionic 2.0 CLI and Meteor Server

The app was working fine in chrome, firefox , android and ios until I upgraded to meteor 1.5.1, and then the above error occurred. I need to point out that the app still functions well in the browser prior to testing in the android where it now fails and produces the above error. After this error has occurred, proceeding tests on firefox fail. Chrome’s behavior is on and off; sometimes the app runs and sometimes it fails depending on whether you first run the tests on android.

Environment
Windows 10
node 6.11.2
npm 3.10.10

package.json

 {
  "name": "front1",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "api": "cd api && meteor run --settings private/settings.json",
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve",
    "meteor-client:bundle": "meteor-client bundle -s api"
  },
  "dependencies": {
    "@angular/common": "4.1.3",
    "@angular/compiler": "4.1.3",
    "@angular/compiler-cli": "4.1.3",
    "@angular/core": "4.1.3",
    "@angular/forms": "4.1.3",
    "@angular/http": "4.1.3",
    "@angular/platform-browser": "4.1.3",
    "@angular/platform-browser-dynamic": "4.1.3",
    "@ionic-native/core": "3.12.1",
    "@ionic-native/splash-screen": "3.12.1",
    "@ionic-native/status-bar": "3.12.1",
    "@ionic/storage": "2.0.1",
    "angular2-moment": "^1.6.0",
    "babel-runtime": "^6.25.0",
    "cordova-plugin-console": "^1.0.5",
    "cordova-plugin-device": "^1.1.4",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-statusbar": "^2.2.2",
    "cordova-plugin-whitelist": "^1.3.1",
    "ionic-angular": "3.6.0",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "meteor-node-stubs": "^0.2.11",
    "meteor-rxjs": "^0.4.7",
    "moment": "^2.18.1",
    "rxjs": "5.4.0",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.12"
  },
  "devDependencies": {
    "@ionic/app-scripts": "2.1.3",
    "@types/meteor": "^1.4.4",
    "@types/meteor-accounts-phone": "0.0.5",
    "@types/meteor-publish-composite": "0.0.32",
    "@types/underscore": "^1.8.1",
    "babel-minify": "^0.2.0",
    "meteor-typings": "^1.4.1",
    "tmp": "0.0.33",
    "typescript": "2.3.4",
    "typescript-extends": "^1.0.1"
  },
  "description": "whatsapp: An Ionic project",
  "config": {
    "ionic_webpack": "./webpack.config.js"
  },
  "cordova": {
    "plugins": {
      "cordova-plugin-console": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-whitelist": {},
      "ionic-plugin-keyboard": {}
    },
    "platforms": []
  }
}

issue link on GitHub : Uncaught TypeError: Cannot convert undefined or null to object with Android API 21 (5.0.x) · Issue #124 · Urigo/Ionic2CLI-Meteor-WhatsApp · GitHub

Can anyone help?