Object(...) is not function, without any specifics plugin information

This is absolute weird, getting this error after fixing some compile problem, not giving any specific plugin error.

Object(...) is not function
TypeError: Object(...) is not a function
    at http://localhost:8100/build/vendor.js:87022:76
    at Object.<anonymous> (http://localhost:8100/build/vendor.js:87047:2)
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at Object.716 (http://localhost:8100/build/main.js:1377:86)
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at Object.431 (http://localhost:8100/build/main.js:1154:73)
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at Object.315 (http://localhost:8100/build/main.js:1138:70)
    at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)
    at webpackJsonpCallback (http://localhost:8100/build/vendor.js:26:23)
ionic info

Ionic:

   Ionic CLI          : 5.2.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.7.1
   @ionic/app-scripts : 3.1.8

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.0.0, browser 5.0.4
   Cordova Plugins   : cordova-plugin-ionic-webview 1.2.1, (and 10 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 0.2.7 

System:

   NodeJS : v10.16.0 (/usr/local/bin/node)
   npm    : 6.9.0
   OS     : Linux 4.18

{
  "name": "coba2",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "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"
  },
  "dependencies": {
    "@angular/common": "4.4.3",
    "@angular/compiler": "4.4.3",
    "@angular/compiler-cli": "4.4.3",
    "@angular/core": "4.4.3",
    "@angular/forms": "4.4.3",
    "@angular/http": "4.4.3",
    "@angular/platform-browser": "4.4.3",
    "@angular/platform-browser-dynamic": "4.4.3",
    "@ionic-native/core": "^5.9.0",
    "@ionic-native/file": "4.6.0",
    "@ionic-native/local-notifications": "^5.9.0",
    "@ionic-native/mixpanel": "4.6.0",
    "@ionic-native/splash-screen": "4.6.0",
    "@ionic-native/sqlite": "^4.7.0",
    "@ionic-native/sqlite-porter": "^4.11.0",
    "@ionic-native/status-bar": "4.6.0",
    "@ionic-native/toast": "4.6.0",
    "@ionic/storage": "2.0.1",
    "cordova-android": "^8.0.0",
    "cordova-android-support-gradle-release": "^3.0.1",
    "cordova-browser": "~5.0.3",
    "cordova-ios": "~4.5.4",
    "cordova-plugin-androidx": "^1.0.2",
    "cordova-plugin-compat": "^1.2.0",
    "cordova-plugin-device": "^1.1.4",
    "cordova-plugin-file": "^6.0.1",
    "cordova-plugin-ionic-webview": "^1.1.16",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-whitelist": "^1.3.4",
    "cordova-sqlite-storage": "^2.3.1",
    "gulp-sass": "4.0.2",
    "ionic-angular": "3.7.1",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "phonegap-plugin-push": "^2.2.3",
    "promise-polyfill": "^8.1.3",
    "rxjs": "6.0.0",
    "rxjs-compat": "^6.3.3",
    "sw-toolbox": "3.6.0",
    "uk.co.workingedge.cordova.plugin.sqliteporter": "^1.0.5",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.8",
    "typescript": "2.3.4"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "ionic-plugin-keyboard": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-compat": {},
      "cordova-plugin-file": {},
      "cordova-sqlite-storage": {},
      "uk.co.workingedge.cordova.plugin.sqliteporter": {},
      "phonegap-plugin-push": {},
      "cordova-android-support-gradle-release": {},
      "cordova-plugin-androidx": {}
    },
    "platforms": [
      "ios",
      "browser"
    ]
  }
}

any solution?

Check the local notifications plugin. You are using the v4 version in Ionic 3.

And put the correct version of ionic-native core

npm install @ionic-native/core@4 --save

Hope this helps.

Pier

1 Like

instantly working, holy cow.

btw how to update all package in one command? it is possible?