Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13596

Installation of scoped plugin also installs conflicting unscoped plugin with same name

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: cordova@7.1.0, 8.0.0
    • Fix Version/s: None
    • Component/s: cordova-lib
    • Labels:
      None
    • Flags:
      Important

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              raphinesse Raphael von der GrĂ¼n
              Reporter:
              mauron85 Marian Hello
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: