You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jan Piotrowski (Sujan) (JIRA)" <ji...@apache.org> on 2018/02/28 15:47:00 UTC

[jira] [Updated] (CB-13596) Installation of scoped plugin also installs conflicting unscoped plugin with same name

     [ https://issues.apache.org/jira/browse/CB-13596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Piotrowski (Sujan) updated CB-13596:
----------------------------------------
    Component/s:     (was: AllPlugins)
                 cordova-cli

> Installation of scoped plugin also installs conflicting unscoped plugin with same name
> --------------------------------------------------------------------------------------
>
>                 Key: CB-13596
>                 URL: https://issues.apache.org/jira/browse/CB-13596
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>    Affects Versions: cordova@7.1.0
>            Reporter: Marian Hello
>            Priority: Major
>
> if there is unscoped package with same name as scoped package, both will be installed.
> As result you will end up with two (potentially conflicting) packages.
> How to reproduce:
> 1. create new cordova project:
> cordova create myApp org.apache.cordova.myApp myApp
> 2. add plaftofm
> cordova platform add android
> 3. install scoped package:
> cordova plugin add @mauron85/cordova-plugin-background-geolocation@3.0.0-alpha.4
> Expected Behavior
> Only single package @mauron85/cordova-plugin-background-geolocation will be installed
> Actual Behaviour
> Two packages will get installed:
> 1. @mauron85/cordova-plugin-background-geolocation - https://www.npmjs.com/package/@mauron85/cordova-plugin-background-geolocation
> 2. cordova-plugin-background-geolocation - https://www.npmjs.com/package/cordova-plugin-background-geolocation
> They are completely different and incompatible. As result cordova project won't compile.
> Console output:
> Installing "cordova-plugin-background-geolocation" for android
> Installing "cordova-plugin-geolocation" for android
> Installing "cordova-plugin-dialogs" for android
> Adding @mauron85/cordova-plugin-background-geolocation to package.json
> Saved plugin info for "@mauron85/cordova-plugin-background-geolocation" to config.xml



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org