Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ambitiont109 opened this issue Oct 24, 2020 · 4 comments

Comments

@Ambitiont109
Copy link

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
Copy link

No solution ?

@pradipkachhadiya
Copy link

?

@FrancescoPaiola
Copy link

FrancescoPaiola commented May 13, 2022

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
Copy link

  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants