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

cordova prepare does not restore saved plugins with no version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-lib

    Description

      If you give a plugin element in config.xml but do not give the spec attribute like so:

      <plugin name="cordova-plugin-inappbrowser" />
      

      Then when you run cordova prepare the CLI will not install the plugin but will print out a message saying that it is installing it.

      $ cordova prepare
        Discovered plugin "cordova-plugin-inappbrowser" in config.xml. Installing to the project
      

      Giving the spec attribute causes the same message but the plugin will actually be installed. I'm not sure what the intended behavior is, but we need to fix it and add some test cases.

      Attachments

        Issue Links

          Activity

            People

              vladimir.kotikov Vladimir Kotikov
              riknoll Richard B Knoll
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: