You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Marian Hello (JIRA)" <ji...@apache.org> on 2017/11/21 13:41:00 UTC

[jira] [Created] (CB-13596) Installation of scoped plugin results also install conflicting unscoped plugin with same name

Marian Hello created CB-13596:
---------------------------------

             Summary: Installation of scoped plugin results also install 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: AllPlugins
    Affects Versions: cordova@7.0.0
            Reporter: Marian Hello


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
(v6.4.14#64029)

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