If I try to build my ionic app using cordova 9.x it fails with this message:
Executing script found in plugin cordova-plugin-iroot for hook "before_prepare": plugins/cordova-plugin-iroot/scripts/handle_plugin_preferences.js
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.
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 (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15)
at module.exports (/home/b1zzu/Projects/github.com/aerogear/ionic-showcase/plugins/cordova-plugin-iroot/scripts/handle_plugin_preferences.js:6:22)
at runScriptViaModuleLoader (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
at runScript (/usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
at /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
but if I downgrade cordova to 8.x.x evrithing works perfectly
If I try to build my ionic app using cordova 9.x it fails with this message:
but if I downgrade cordova to 8.x.x evrithing works perfectly