ApiRTC / ApiRTC-cordova-demo

Example of how to use ApiRTC into mobile application
14 stars 8 forks source link

build error on ubuntu #13

Closed patricerosay closed 3 years ago

patricerosay commented 4 years ago

I followed the instructions but I ran into the error bellow. I had the same issue after execution of the init.sh

Failed to install 'cordova-custom-config': CordovaError: Using "requireCordovaModule" to load non-cordova module "child_process" is not supported. Instead, add this module to your dependencies and use regular "require" to load it. at Context.requireCordovaModule (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15) at module.exports (/media/patrice/dev/dev/git/apizee-webrtc/ApiRTC-mobile/plugins/cordova-custom-config/hooks/resolveDependencies.js:6:20) at runScriptViaModuleLoader (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32) at runScript (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16) at /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20 at process._tickCallback (internal/process/next_tick.js:68:7) Using "requireCordovaModule" to load non-cordova module "child_process" is not supported. Instead, add this module to your dependencies and use regular "require" to load it. Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.

patricerosay commented 4 years ago

cordova build android Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.

FredLuart commented 4 years ago

It seems to be an error between your Cordova version and cordova-custom-config module Can you try to upgrade the version of cordova-custom-config ? Check package.json versions definition

patricerosay commented 4 years ago

i've managed to make it work after cleaning depedencies