[Google Login Plugin] Error while generating iOS app : module 'q' not found

Forge Component
(8)
Published on 2017-07-06 by Labs
8 votes
Published on 2017-07-06 by Labs

Hi Team,

I checked with below version of plugin.

Plugin Version : 8.4.0, 5.3.2, 5.0.3

MABS Version : 5.2 and 6.1

I got an below error also i have attached error log. 

[ERROR] Build failed with the following error: Error installing Cordova plugin: cordova-plugin-googleplus': Error: Cannot find module 'q.

also i have raised ticket to outystems support they gave follow finding.

Failed to install 'cordova-plugin-googleplus': Error: Cannot find module 'q'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at module.exports (/Users/mabs04/NativeBuilder/builds/fc24aa3e-63d7-4ab6-b173-313c335e702c/source/plugins/cordova-plugin-googleplus/hooks/ios/prerequisites.js:5:18)
    at runScriptViaModuleLoader (/Users/mabs04/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:188:18)
    at runScript (/Users/mabs04/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:164:16)
    at /Users/mabs04/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:132:20
    at _fulfilled (/Users/mabs04/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/Users/mabs04/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/q/q.js:816:30)
Google Sign-In prerequisites
Error: Cannot find module 'q'

So help me to resolve this issue.



Hi Swapnil,

The forum discussion Tarun has shared which says the version 7.0.2 working for both Android and iOS. Did you tried this.