0

i'm build my android application with ionic 3, try in cordova version 8.1.2 and 9.0.0 error like this :

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.

how to fix it ?

Choirul Imam
  • 41
  • 2
  • 6

2 Answers2

1

I solved the same issue by doing many things check this post

also do 1 - ionic cordova platform add android ( make any changes that appear in the cli to your config.xml )

2- make sure you have latest cordova and do ( npm cache clear --force )

3- make sure you have ( JAVA_HOME - AND SDK CONFIGURED WILL IN SYSTEM ENVIRONMENT )

0

The problem is now the Ionic Appflow build environment was updated to Cordova 9.

Maybe this can help you : https://ionic.zendesk.com/hc/en-us/articles/360021400494-Package-build-fails-with-error-CordovaError-Using-requireCordovaModule-