terikon / cordova-plugin-photo-library

Maintainer needed. Please contact if you're using this library in your project
MIT License
149 stars 295 forks source link

Using “requireCordovaModule” to load non-cordova module “glob” is not supported #194

Open Ambitiont109 opened 3 years ago

Ambitiont109 commented 3 years ago

When i try to add plugin to my project. I got below error "Using “requireCordovaModule” to load non-cordova module “glob” is not supported"

my environment is like below; "cordova-ios": "^5.1.1", cordova -v : 9.0.0

CharlesOnAir commented 3 years ago

No solution ?

pradipkachhadiya commented 3 years ago

?

FrancescoPaiola commented 2 years ago

Same problem. Just found this. Please update dependency to cordova-plugin-add-swift-support.

If you want to temporary solve the problem replace every "context.requireCordovaModule" with "require" into add-Swift-support.js which is in the directory "plugins/cordova-plugin-add-swift-support"

himanshu-pandit commented 1 year ago
  1. Firstly delete you cordova-plugin-add-swift-support folder from plugin folder
  2. After that update your cordova-plugin-add-swift-support to the latest version from package.json "https://www.npmjs.com/package/cordova-plugin-add-swift-support"

Its solved my problem...Thank you.