I try to use the following plugin but i get this error.
My goal is to show GDPR Consent by using Funding Choices.
UserError: Failed to restore plugin “cordova-plugin-google-ump”. You might need to try adding it again. Error: CordovaError: 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.
Tip: If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly.
So, in XCode, the error is shown but is just a warning, and the plugin work correctly. (is written “Error” but message is in warning orange color).
With VoltBuilder, is a blocking error.
UserError: Failed to restore plugin “cordova-plugin-google-ump”. You might need to try adding it again. Error: CordovaError: 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.
I think you need to ask the author of the plugin for some help. Issue #1 in the repo is this exact issue. It was opened 3 months ago and there has been no response.
There have been no updates since the plugin’s initial release.
Yes, you should be able to make your own fork of the plugin so you can solve its problems. You’ll also need to create a new npmjs.com entry for your fork.