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

ionic cordova plugin add cordova-plugin-app-preferences Not installing in latest cordova 9. #4091

Closed
amitgandole opened this issue Jul 17, 2019 · 1 comment
Labels

Comments

@amitgandole
Copy link

amitgandole commented Jul 17, 2019

Here is the response of "ionic cordova plugin add cordova-plugin-app-preferences" :

`Installing "cordova-plugin-app-preferences" for android
Failed to install 'cordova-plugin-app-preferences': CordovaError: Using "requireCordovaModule" to load non-cordova module "path" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
at Context.requireCordovaModule (C:\pathTo\node_modules\cordova-lib\src\hooks\Context.js:57:15)
at module.exports (C:\pathTo\plugins\cordova-plugin-app-preferences\bin\before_plugin_install.js:6:14)
at runScriptViaModuleLoader (C:\pathTo\node_modules\cordova-lib\src\hooks\HooksRunner.js:181:32)
at runScript (C:\pathTo\node_modules\cordova-lib\src\hooks\HooksRunner.js:157:16)
at C:\pathTo\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 "path" 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.

    cordova.cmd plugin add cordova-plugin-app-preferences exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.`

Its working when I use this : "cordova plugin add cordova-plugin-app-preferences" but not with "ionic cordova plugin add cordova-plugin-app-preferences

@ionitron-bot ionitron-bot bot added the triage label Jul 17, 2019
@amitgandole amitgandole changed the title ionic cordova plugin add cordova-plugin-app-preferences Not installing in lates cordova 9. ionic cordova plugin add cordova-plugin-app-preferences Not installing in latest cordova 9. Jul 17, 2019
@jcesarmobile
Copy link
Member

This is a bug in the plugin, has to be fixed there, cordova 9 removed requireCordovaModule and plugins need to be updated to not use it.
It's already reported in their repo apla/me.apla.cordova.app-preferences#147

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

No branches or pull requests

2 participants