cordova-plugin-photo-library icon indicating copy to clipboard operation
cordova-plugin-photo-library copied to clipboard

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

Open Ambitiont109 opened this issue 4 years ago • 4 comments

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

Ambitiont109 avatar Oct 24 '20 06:10 Ambitiont109

No solution ?

CharlesOnAir avatar Nov 11 '20 13:11 CharlesOnAir

?

pradipkachhadiya avatar Mar 25 '21 12:03 pradipkachhadiya

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"

FrancescoPaiola avatar May 13 '22 15:05 FrancescoPaiola

  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.

himanshu-pandit avatar Sep 22 '22 06:09 himanshu-pandit