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

Plugin name mismatch #116

Open
damirarh opened this issue Sep 8, 2017 · 2 comments
Open

Plugin name mismatch #116

damirarh opened this issue Sep 8, 2017 · 2 comments

Comments

@damirarh
Copy link

damirarh commented Sep 8, 2017

There's a mismatch between the name of the plugin in plugin.xml (com.pylonproducts.wifiwizard) and the name under which it is published on NPM (wifiwizard). This means that the plugin is saved to config.xml as com.pylonproducts.wifiwizard, when you install it with:

cordova plugin add wifiwizard --save

As a result, it fails to install when you call cordova prepare, because it can't find com.pylonproducts.wifiwizard in NPM. You need to manually cahnge the entry in config.xml to wifiwizard to make it work.

One of the two names should be changed so that they match. I guess it will break less people if plugin.xml is changed.

@GaurangPoolCar
Copy link

Hi @damirarh

I tried every possible solution that you have suggested, but I am getting the same error.

@damirarh
Copy link
Author

@GaurangPoolCar Changing the entry in config.xml was enough in my case to get cordova prepare to install the plugin. I am still using Cordova 6.x, though, and the behavior might be different in Cordova 7, where plugins are also registered in package.json.

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

2 participants