Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error - Using "requireCordovaModule" to load non-cordova module "q" is not supported

Running command: node

C:\Users\Windows\Desktop\mobileionicead\hooks\after_prepare\030_android_splash.js

C:\Users\Windows\Desktop\mobileionicead. 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.
[ERROR] An error occurred while running subprocess cordova.

like image 375
Leonardo Henrique de Andrade Avatar asked Apr 16 '19 16:04

Leonardo Henrique de Andrade


1 Answers

I had the same problem. You need to downgrade cordova to the version 8.1.2

npm uninstall -g cordova
npm cache clean --force
npm i -g [email protected]
like image 172
H_H Avatar answered Nov 06 '22 13:11

H_H