Error generating build in android release mode on IONIC -V1

Asked

Viewed 86 times

0

When I turn the remote ionic cordova build android --release he returns me this 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.
[ERROR] An error occurred while running subprocess cordova.

I have already removed and added the platform,delete the node_modules folder and run this command: npm install @ionic/app-scripts@latest --save-dev

And I’ve tried the ionic repair.

  • This seems to be a problem with some plugin you are using. Try running the build command with the parameter --verbose to see exactly where this error comes from.

1 answer

1


Change the version of your Cordova, the methods that are being used by your plugins that are not supported in this version of Cordova, I recommend doing Downgrade

1 - npm uninstall -g cordova

2 - npm cache clean --force

3 - npm i -g [email protected]

if it doesn’t work try other versions, you can also for the end of tests do the removal of plugin by plugin to see what is causing the problem, recommend removing the plugins using the --save

Browser other questions tagged

You are not signed in. Login or sign up in order to post.