You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot figure this error out, it only happens on this plugin and none others. I have upgraded to use cordova 9.0.0 and now this plugin throws the following error when trying to build for android
Discovered saved plugin "cordova-plugin-iroot". Adding it to the project
Installing "cordova-plugin-iroot" for android
Subproject Path: CordovaLib
Subproject Path: app
Failed to install 'cordova-plugin-iroot': CordovaError: Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
at Context.requireCordovaModule (/Users/m2i/.npm-global/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15)
at module.exports (/Users/m2i/Desktop/appBundler/mobile/src/plugins/cordova-plugin-iroot/scripts/handle_plugin_preferences.js:6:22)
at runScriptViaModuleLoader (/Users/m2i/.npm-global/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
at runScript (/Users/m2i/.npm-global/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
at /Users/m2i/.npm-global/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
at process._tickCallback (internal/process/next_tick.js:68:7)
Failed to restore plugin "cordova-plugin-iroot" from config.xml. You might need to try adding it again. Error: Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
All my plugins have been removed from the config.xml file and instead are in package.json. In there i have
I have also tried to build the project with cordova-android: 9.0.0but i am getting the same exception.
I am also getting problems trying to build for ios as well, here is the exception
Installing "cordova-plugin-iroot" for ios
Failed to install 'cordova-plugin-iroot': CordovaError: Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
at Context.requireCordovaModule (/Users/m2i/.npm-global/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15)
at module.exports (/Users/m2i/Desktop/appBundler/mobile/src/plugins/cordova-plugin-iroot/scripts/handle_plugin_preferences.js:6:22)
at runScriptViaModuleLoader (/Users/m2i/.npm-global/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
at runScript (/Users/m2i/.npm-global/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
at /Users/m2i/.npm-global/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
at process._tickCallback (internal/process/next_tick.js:68:7)
Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
My package.json for ios is as follows
"cordova-ios": "^5.1.1",
I have tried uninstalling cordova using npm r cordova -g and then reinstalling but that doesnt seem to help.
Any help would be much appreciated.
The text was updated successfully, but these errors were encountered:
I cannot figure this error out, it only happens on this plugin and none others. I have upgraded to use cordova 9.0.0 and now this plugin throws the following error when trying to build for android
All my plugins have been removed from the config.xml file and instead are in package.json. In there i have
I have also tried to build the project with
cordova-android: 9.0.0
but i am getting the same exception.I am also getting problems trying to build for ios as well, here is the exception
My package.json for ios is as follows
I have tried uninstalling cordova using
npm r cordova -g
and then reinstalling but that doesnt seem to help.Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: