Ionic 4 Social Sharing crashes app


SocialSharing plugin crashes during ionic serve despite it is added in the app.module providers array and injected on my screen’s constructor. Error message is below

index.js:413 Uncaught TypeError: Object(…) is not a function
at index.js:413
at Module…/node_modules/@ionic-native/social-sharing/index.js (index.js:590)
at webpack_require (bootstrap:83)
at Module…/src/app/app.module.ts (app.component.ts:11)
at webpack_require (bootstrap:83)
at Module…/src/main.ts (main.ts:1)
at webpack_require (bootstrap:83)
at Object.0 (main.ts:12)
at webpack_require (bootstrap:83)
at checkDeferredModules (bootstrap:45)

and the version info is

ionic info


Ionic CLI : 5.0.0 (C:\Users\xxxxx\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.5.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1


Cordova CLI : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : none
Cordova Plugins : no whitelisted plugins (1 plugins total)


cordova-res : not installed
native-run : not installed


Android SDK Tools : 26.1.1 (C:\Users\xxxxx\AppData\Local\Android\Sdk)
NodeJS : v10.15.0 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10

Thanks in advsnce

do you have any updates regarding this…?
am having the same issue

Getting no answers, i had to start a new project, copy all my files to this new project, then update all the plugins to the latest version with the correct dependencies resolved this issue.