Unable to run app after instalation cordova-plugin-ionic for live updates

Hi there,
I just got this error when I run the app: Unhandled Promise rejection: Cannot read property 'getServerBasePath' of undefined.

I only installed cordova-plugin-ionic.

Thanks for any help.

Here is my whole package.json file:

{
  "name": "",
  "description": "",
  "author": "",
  "homepage": "",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "4.1.2",
    "@angular/compiler": "4.1.2",
    "@angular/compiler-cli": "4.1.2",
    "@angular/core": "4.1.2",
    "@angular/forms": "4.1.2",
    "@angular/http": "4.1.2",
    "@angular/platform-browser": "4.1.2",
    "@angular/platform-browser-dynamic": "4.1.2",
    "@ionic-native/app-version": "3.10.2",
    "@ionic-native/base64": "^4.7.0",
    "@ionic-native/camera": "3.10.2",
    "@ionic-native/core": "3.10.2",
    "@ionic-native/geolocation": "3.10.2",
    "@ionic-native/in-app-browser": "3.10.2",
    "@ionic-native/launch-navigator": "3.10.2",
    "@ionic-native/local-notifications": "3.10.2",
    "@ionic-native/splash-screen": "3.10.2",
    "@ionic-native/status-bar": "3.10.2",
    "@ionic/pro": "^2.0.3",
    "@ionic/storage": "2.0.1",
    "@ngx-translate/core": "^6.0.1",
    "@ngx-translate/http-loader": "0.0.3",
    "com-badrit-base64": "^0.2.0",
    "cordova-android": "6.3.0",
    "cordova-android-support-gradle-release": "^1.4.4",
    "cordova-ios": "4.5.5",
    "cordova-plugin-actionsheet": "^2.3.3",
    "cordova-plugin-app-event": "^1.2.1",
    "cordova-plugin-app-version": "^0.1.9",
    "cordova-plugin-camera": "^2.4.1",
    "cordova-plugin-compat": "^1.2.0",
    "cordova-plugin-console": "^1.1.0",
    "cordova-plugin-device": "^1.1.7",
    "cordova-plugin-file": "^6.0.1",
    "cordova-plugin-geolocation": "^2.4.3",
    "cordova-plugin-headercolor": "^1.0.0",
    "cordova-plugin-inappbrowser": "^1.7.2",
    "cordova-plugin-ionic": "^5.0.3",
    "cordova-plugin-ionic-webview": "^2.1.3",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-sms-plugin": "^0.1.13",
    "de.appplant.cordova.plugin.local-notification": "^0.8.5",
    "ionic": "^3.20.0",
    "ionic-angular": "3.3.0",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "ios": "0.0.1",
    "leaflet": "^1.3.1",
    "moment": "^2.22.2",
    "rxjs": "5.1.1",
    "sw-toolbox": "3.6.0",
    "uk.co.workingedge.phonegap.plugin.launchnavigator": "^3.2.2",
    "zone.js": "0.8.11"
  },
  "devDependencies": {
    "@ionic/app-scripts": "^3.1.10",
    "@types/leaflet": "^1.2.7",
    "typescript": "2.3.3"
  },
  "cordova": {
    "plugins": {
      "cordova-plugin-device": {},
      "cordova-plugin-console": {},
      "cordova-plugin-headercolor": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-geolocation": {
        "GEOLOCATION_USAGE_DESCRIPTION": "To locate user position and show it on the map"
      },
      "cordova-plugin-app-version": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-sms-plugin": {},
      "ionic-plugin-keyboard": {},
      "uk.co.workingedge.phonegap.plugin.launchnavigator": {},
      "de.appplant.cordova.plugin.local-notification": {},
      "com-badrit-base64": {},
      "cordova-android-support-gradle-release": {
        "ANDROID_SUPPORT_VERSION": "27.+"
      },
      "cordova-plugin-camera": {
        "CAMERA_USAGE_DESCRIPTION": "User can take a photo of his documents",
        "PHOTOLIBRARY_USAGE_DESCRIPTION": "User can choose a photo of his documents"
      },
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic": {
        "APP_ID": "app_id",
        "CHANNEL_NAME": "Master",
        "UPDATE_METHOD": "background",
        "MAX_STORE": "2",
        "WARN_DEBUG": "true",
        "UPDATE_API": "https://api.ionicjs.com",
        "MIN_BACKGROUND_DURATION": "30"
      }
    },
    "platforms": [
      "android",
      "ios"
    ]
  }
}

Hi @mcihak. You can try to update your app dependencies from latest ionic project created by ionic start (name). OR you can check my current dependencies:
package.json

"dependencies": {
    "@angular/animations": "5.2.11",
    "@angular/common": "5.2.11",
    "@angular/compiler": "5.2.11",
    "@angular/compiler-cli": "5.2.11",
    "@angular/core": "5.2.11",
    "@angular/forms": "5.2.11",
    "@angular/http": "5.2.11",
    "@angular/platform-browser": "5.2.11",
    "@angular/platform-browser-dynamic": "5.2.11",
    "@auth0/angular-jwt": "^1.2.0",
    "@ionic-native/badge": "4.13.0",
    "@ionic-native/barcode-scanner": "4.13.0",
    "@ionic-native/camera": "4.13.0",
    "@ionic-native/core": "4.13.0",
    "@ionic-native/diagnostic": "4.13.0",
    "@ionic-native/keyboard": "4.13.0",
    "@ionic-native/native-page-transitions": "4.13.0",
    "@ionic-native/network": "4.13.0",
    "@ionic-native/screen-orientation": "4.13.0",
    "@ionic-native/splash-screen": "4.13.0",
    "@ionic-native/status-bar": "4.13.0",
    "@ionic/storage": "2.1.3",
    "applicationinsights-js": "^1.0.17",
    "cordova-ios": "4.5.5",
    "cordova-plugin-badge": "^0.8.7",
    "cordova-plugin-camera": "^4.0.3",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-file": "^6.0.1",
    "cordova-plugin-file-transfer": "^1.7.1",
    "cordova-plugin-ionic-keyboard": "^2.1.2",
    "cordova-plugin-ionic-webview": "^2.1.4",
    "cordova-plugin-network-information": "^2.0.1",
    "cordova-plugin-screen-orientation": "^3.0.1",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-sqlite-storage": "^2.4.0",
    "cordova.plugins.diagnostic": "^4.0.10",
    "ionic-angular": "3.9.2",
    "ionic-cache": "^3.1.1",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "list": "2.0.13",
    "moment": "^2.22.1",
    "rxjs": "^5.5.11",
    "sw-toolbox": "3.6.0",
    "web-animations-js": "^2.3.1",
    "zone.js": "0.8.26"
  },
"devDependencies": {
    "@ionic/app-scripts": "3.2.0",
    "cross-env": "^5.1.6",
    "ionic-version": "^1.0.1",
    "typescript": "~2.6.2"
  },

config.xml

plugin name="cordova-sqlite-storage" spec="^2.3.2" />
    <plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
    <plugin name="cordova-plugin-device" spec="^2.0.2" />
    <plugin name="phonegap-plugin-barcodescanner" spec="^7.1.2" />
    <plugin name="cordova-plugin-statusbar" spec="^2.4.2" />
    <plugin name="cordova-plugin-splashscreen" spec="^5.0.2" />
    <plugin name="cordova-plugin-camera" spec="^4.0.3" />
    <plugin name="cordova.plugins.diagnostic" spec="~4.0.8" />
    <plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
    <plugin name="cordova-plugin-badge" spec="^0.8.7" />
    <plugin name="cordova-plugin-network-information" spec="^2.0.1" />
    <plugin name="cordova-plugin-screen-orientation" spec="^3.0.1" />
    <plugin name="cordova-plugin-ionic-webview" spec="^2.0.0" />
    <engine name="ios" spec="4.5.5" />

It helped me with exactly same issue, hope it will be useful for you.

Thanks. But even if I update dependencies, I get the same error :-/

Here id updated package.json dependencies:

"dependencies": {
    "@angular/animations": "5.2.11",
    "@angular/common": "5.2.11",
    "@angular/compiler": "5.2.11",
    "@angular/compiler-cli": "5.2.11",
    "@angular/core": "5.2.11",
    "@angular/forms": "5.2.11",
    "@angular/http": "5.2.11",
    "@angular/platform-browser": "5.2.11",
    "@angular/platform-browser-dynamic": "5.2.11",
    "@ionic-native/app-version": "3.10.2",
    "@ionic-native/base64": "^4.7.0",
    "@ionic-native/camera": "4.13.0",
    "@ionic-native/core": "4.13.0",
    "@ionic-native/geolocation": "3.10.2",
    "@ionic-native/in-app-browser": "3.10.2",
    "@ionic-native/launch-navigator": "3.10.2",
    "@ionic-native/local-notifications": "3.10.2",
    "@ionic-native/splash-screen": "4.13.0",
    "@ionic-native/status-bar": "4.13.0",
    "@ionic/pro": "^2.0.3",
    "@ionic/storage": "2.1.3",
    "@ngx-translate/core": "^9.1.1",
    "@ngx-translate/http-loader": "^2.0.1",
    "com-badrit-base64": "^0.2.0",
    "cordova-android": "6.3.0",
    "cordova-android-support-gradle-release": "^1.4.4",
    "cordova-ios": "4.5.5",
    "cordova-plugin-actionsheet": "^2.3.3",
    "cordova-plugin-app-event": "^1.2.1",
    "cordova-plugin-app-version": "^0.1.9",
    "cordova-plugin-camera": "^4.0.3",
    "cordova-plugin-compat": "^1.2.0",
    "cordova-plugin-console": "^1.1.0",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-file": "^6.0.1",
    "cordova-plugin-geolocation": "^2.4.3",
    "cordova-plugin-headercolor": "^1.0.0",
    "cordova-plugin-inappbrowser": "^1.7.2",
    "cordova-plugin-ionic": "^5.0.3",
    "cordova-plugin-ionic-webview": "^2.1.4",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-sms-plugin": "^0.1.13",
    "de.appplant.cordova.plugin.local-notification": "^0.8.5",
    "ionic": "^3.20.0",
    "ionic-angular": "3.9.2",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "ios": "0.0.1",
    "leaflet": "^1.3.1",
    "moment": "^2.22.2",
    "rxjs": "^5.5.11",
    "sw-toolbox": "3.6.0",
    "uk.co.workingedge.phonegap.plugin.launchnavigator": "^3.2.2",
    "zone.js": "0.8.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.2.0",
    "@ionic/lab": "1.0.9",
    "@types/leaflet": "^1.2.7",
    "typescript": "~2.6.2"
  },