Runtime Error Object (...) is not a function

how to fix this issue? I attach my package.json file.

{

“name”: “slendo-app”,

“version”: “0.0.1”,

“author”: “Ionic Framework”,

“homepage”: “http://ionicframework.com/”,

“private”: true,

“scripts”: {

"start": "ionic-app-scripts serve",

"clean": "ionic-app-scripts clean",

"build": "ionic-app-scripts build",

"lint": "ionic-app-scripts lint"

},

“dependencies”: {

"@agm/core": "^1.0.0-beta.6",

"@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/fire": "^5.2.1",

"@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/core": "~4.20.0",

"@ionic-native/document-viewer": "^4.20.0",

"@ionic-native/file": "^4.20.0",

"@ionic-native/file-transfer": "^4.20.0",

"@ionic-native/in-app-browser": "^4.20.0",

"@ionic-native/launch-navigator": "^4.20.0",

"@ionic-native/native-storage": "^4.20.0",

"@ionic-native/network": "^4.20.0",

"@ionic-native/open-native-settings": "^4.20.0",

"@ionic-native/photo-viewer": "^4.20.0",

"@ionic-native/push": "^4.20.0",

"@ionic-native/social-sharing": "^4.20.0",

"@ionic-native/splash-screen": "~4.20.0",

"@ionic-native/sqlite": "^4.20.0",

"@ionic-native/status-bar": "~4.20.0",

"@ionic-native/youtube-video-player": "^4.20.0",

"@ionic/cli-plugin-cordova": "^1.6.2",

"@ionic/storage": "2.2.0",

"@types/yup": "^0.26.26",

"angularfire2": "^5.2.1",

"chart.js": "^2.8.0",

"com-sarriaroman-photoviewer": "^1.2.4",

"cordova-android": "git+https://github.com/apache/cordova-android.git",

"cordova-android-firebase-gradle-release": "^4.0.0",

"cordova-android-support-gradle-release": "^3.0.1",

"cordova-ios": "5.1.1",

"cordova-open-native-settings": "^1.5.2",

"cordova-plugin-actionsheet": "^2.3.3",

"cordova-plugin-androidx": "^1.0.2",

"cordova-plugin-androidx-adapter": "^1.1.0",

"cordova-plugin-device": "2.0.2",

"cordova-plugin-dialogs": "^2.0.2",

"cordova-plugin-document-viewer": "^0.9.13",

"cordova-plugin-file": "^6.0.2",

"cordova-plugin-file-transfer": "^1.7.1",

"cordova-plugin-firebasex": "^6.0.1",

"cordova-plugin-inappbrowser": "^3.1.0",

"cordova-plugin-ionic-keyboard": "^2.0.5",

"cordova-plugin-ionic-webview": "^4.0.0",

"cordova-plugin-nativestorage": "^2.3.2",

"cordova-plugin-network-information": "^2.0.2",

"cordova-plugin-splashscreen": "5.0.2",

"cordova-plugin-statusbar": "2.4.2",

"cordova-plugin-whitelist": "1.3.3",

"cordova-plugin-x-socialsharing": "^5.6.0",

"cordova-plugin-youtube-video-player": "^2.3.0",

"cordova-sqlite-storage": "^3.4.0",

"cordova-support-google-services": "git+https://github.com/LuisEGR/cordova-support-google-services.git",

"es6-promise-plugin": "^4.2.2",

"expo-cli": "^3.11.1",

"firebase": "^6.3.1",

"ionic": "5.0.3",

"ionic-angular": "3.9.5",

"ionic2-super-tabs": "^5.2.0",

"ionicons": "3.0.0",

"moment": "^2.24.0",

"ng2-charts": "^2.3.0",

"ng2-charts-x": "^2.0.6",

"phonegap-plugin-multidex": "^1.0.0",

"phonegap-plugin-push": "^2.3.0",

"rxjs": "^6.0.0",

"rxjs-compat": "^6.0.0",

"sw-toolbox": "3.6.0",

"uk.co.workingedge.phonegap.plugin.launchnavigator": "^5.0.4",

"webpack": "^3.11.0",

"zone.js": "0.8.29"

},

“devDependencies”: {

"@ionic/app-scripts": "^3.2.4",

"@ionic/cli-plugin-ionic-angular": "1.4.1",

"@ionic/lab": "2.0.3",

"cordova-plugin-device": "^2.0.2",

"cordova-plugin-ionic-keyboard": "^2.2.0",

"cordova-plugin-ionic-webview": "^4.1.2",

"cordova-plugin-splashscreen": "^5.0.2",

"cordova-plugin-statusbar": "^2.4.2",

"cordova-plugin-whitelist": "^1.3.3",

"typescript": "~3.7.3"

},

“description”: “An Ionic project”,

“cordova”: {

"plugins": {

  "cordova-plugin-whitelist": {},

  "cordova-plugin-statusbar": {},

  "cordova-plugin-device": {},

  "cordova-plugin-splashscreen": {},

  "cordova-plugin-ionic-webview": {

    "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"

  },

  "cordova-plugin-ionic-keyboard": {},

  "cordova-plugin-file-transfer": {},

  "cordova-plugin-file": {},

  "cordova-plugin-document-viewer": {},

  "cordova-plugin-androidx": {},

  "cordova-plugin-androidx-adapter": {},

  "uk.co.workingedge.phonegap.plugin.launchnavigator": {

    "GOOGLE_API_KEY_FOR_ANDROID": "####################################",

    "OKHTTP_VERSION": "3.12.0"

  },

  "cordova-plugin-youtube-video-player": {},

  "cordova-plugin-network-information": {},

  "cordova-open-native-settings": {},

  "cordova-plugin-x-socialsharing": {

    "ANDROID_SUPPORT_V4_VERSION": "24.1.1+"

  },

  "com-sarriaroman-photoviewer": {},

  "cordova-plugin-inappbrowser": {},

  "phonegap-plugin-push": {

    "SENDER_ID": "558310504895",

    "ANDROID_SUPPORT_V13_VERSION": "27.+",

    "FCM_VERSION": "11.6.2"

  },

  "cordova-plugin-nativestorage": {},

  "cordova-sqlite-storage": {},

  "cordova-support-google-services": {}

},

"platforms": [

  "android"

]

}

}

try to run this command:

npm i rxjs@6 rxjs-compat@6 promise-polyfill --save

I would suggest completely abandoning this project and starting over with a freshly spawned one, parachuting your app code in once you have the new project building.