fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
624 stars 991 forks source link

getting index.js:171 Uncaught TypeError: Object(...) is not a function after installing fcm plugin #613

Open devtechvalens opened 4 years ago

devtechvalens commented 4 years ago

Hello getting below error

index.js:171 Uncaught TypeError: Object(...) is not a function at index.js:171 at Module../node_modules/@ionic-native/fcm/index.js (index.js:253) at webpack_require (bootstrap:83) at Module../src/app/app.component.ts (app.component.ts:1) at webpack_require (bootstrap:83) at Module../src/app/app.module.ts (app.module.ts:2) at webpack_require (bootstrap:83) at Module../src/main.ts (main.ts:1) at webpack_require (bootstrap:83) at Object.0 (main.ts:12)

after installing the Cordova plugin please help

atimsihcus commented 4 years ago

Which version of ionic are you using? If you are using v3, make sure you install from this link