arnesson / cordova-plugin-firebase

Cordova plugin for Google Firebase
http://arnesson.github.io/cordova-plugin-firebase
MIT License
1k stars 1.55k forks source link

CordovaError: Using "requireCordovaModule" to load non-cordova module #1156

Open ferrvri opened 3 years ago

ferrvri commented 3 years ago

Hi!

i'm facing this problem write on title. A way to solve is change importation

require('xcode'), instead of cordova context

Thanks!!

https://github.com/arnesson/cordova-plugin-firebase/blob/a32b126274b90d62e8c2a20205a137bc11941b76/scripts/ios/helper.js#L33

gtl-parth commented 2 years ago

Hi!

i'm facing this problem write on title. A way to solve is change importation

require('xcode'), instead of cordova context

Thanks!!

https://github.com/arnesson/cordova-plugin-firebase/blob/a32b126274b90d62e8c2a20205a137bc11941b76/scripts/ios/helper.js#L33

I am facing same issue. I am trying to change "var xcode = context.requireCordovaModule("xcode"); " in helper.js file in 2 place but still getting same error

Can you please look it? and help.

Thanks in advance..

@robertarnesson

Cl0v1s commented 1 year ago

Same issue here. When using MeteorJS instead of directly cordova with this plugin.

The solution provided by @ferrvri fixed the issue for me.