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

Add support for Cordova 9.0 #147

Open
jegesh opened this issue Mar 26, 2019 · 5 comments
Open

Add support for Cordova 9.0 #147

jegesh opened this issue Mar 26, 2019 · 5 comments

Comments

@jegesh
Copy link

jegesh commented Mar 26, 2019

Issue:
When trying the install the plugin using Cordova v9.0, the following error is received:

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 (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15)
    at module.exports (/Users/path/to/project/plugins/cordova-plugin-app-preferences/bin/before_plugin_install.js:6:14)

requireCordovaModule has been removed in this version of Cordova.

Environment

Plugin version:

  • released version:

Toolchain:

  • Cordova cli

Platforms affected:
Probably all, only tried with iOs

What the scope of your problem:

  • Unable to install plugin
@NemSavic
Copy link

I had the same issue and was able to resolve. I created a pull request with my fix: #148

@sprengerst
Copy link

PUSH

@warrenonedge
Copy link

Is there any update on this?

@warrenonedge
Copy link

warrenonedge commented Jul 30, 2020 via email

@mayursofbang4
Copy link

I am able to open the app preferences in IOS via Cordova plugin add https://github.com/myieye/me.apla.cordova.app-preferences but not working in android. Can anyone have a solution for this issue?

We are getting an error while clicking on the app preference icon - Class me.apla.cordova.AppPreferencesActivity not found. Please run preference generator.

cordova plugin add https://github.com/myieye/me.apla.cordova.app-preferences

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

No branches or pull requests

5 participants