You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/10/16 12:24:03 UTC

[GitHub] [cordova-android] harivenkatesh-id opened a new issue #1093: cordova android build throws error

harivenkatesh-id opened a new issue #1093:
URL: https://github.com/apache/cordova-android/issues/1093


   sudo ionic cordova build android gives error
   
   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.
   
   When android build done with cordova version 8.1.2, build generated successfully.
   After updating cordova version to 9 or 10, throws error
   
   **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.**
   
   
   
   
   ### Command or Code
   sudo ionic cordova build android / sudo ionic cordova prepare android
   
   
   
   ### Environment, Platform, Device
   Cordova version 10, Cordova-android 9
   
   
   
   ### Version information
   
   Cordova: Cordova10, Cordova Platforms - android and ios, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version - ionic4
   Operating System, Android Studio
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #1093: cordova android build throws error

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1093:
URL: https://github.com/apache/cordova-android/issues/1093#issuecomment-710018602


   Not a bug.
   
   This is caused by a plugin that is attempting to use cordova's inner working code to import packages that cordova declares. This is something we used to allow in cordova8 but stopped allowing in cordova9. Plugins should add dependencies themselves and use the node native `require` to use them.
   
   To fix this  you first have to find the culprit plugin that is using `requireCordovaModule` and update it. In this case you'll be looking for a plugin that is using `requireCordovaModule("q")`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek closed issue #1093: cordova android build throws error

Posted by GitBox <gi...@apache.org>.
breautek closed issue #1093:
URL: https://github.com/apache/cordova-android/issues/1093


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] harivenkatesh-id commented on issue #1093: cordova android build throws error

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id commented on issue #1093:
URL: https://github.com/apache/cordova-android/issues/1093#issuecomment-710021738


   Thank you @breautek 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org