Using “requireCordovaModule” to load non-cordova module “glob” is not supported. Instead, add this module to your dependencies and use regular “require” to load it

Last Updated On February 08, 2020
You are here:
  • KB Home
  • Common errors
  • Using "requireCordovaModule" to load non-cordova module "glob" is not supported. Instead, add this module to your dependencies and use regular "require" to load it

If you have this error “Using “requireCordovaModule” to load non-cordova module “glob” is not supported. Instead, add this module to your dependencies and use regular “require” to load it” when running ng serve or when you try to build/run iOS or Android app you need to check if a wrong version of Cordova is installed. Run:

npm list -g --depth=0;

If it is present: cordova@9.0.0 or higher, please run the following commands:

npm -g uninstall cordova
npm -g install cordova@8.1.2

2 thoughts on “Using “requireCordovaModule” to load non-cordova module “glob” is not supported. Instead, add this module to your dependencies and use regular “require” to load it

    1. This error is not related to iOS or Android but on Cordova. Did you follow those steps?

Leave a Reply

Your email address will not be published. Required fields are marked *