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

Error when set engine name to "cordova-windows" in plugin.xml

    XMLWordPrintableJSON

Details

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

    Description

      If you create an engine element with name="cordova-windows" in plugin.xml, like this:

      <engines>
          <engine name="cordova-windows" version=">=3.8.0" />
      </engines>
      

      You will get an error when you add the plugin:

      TypeError: Cannot call method 'indexOf' of undefined
          at ...\cordova-lib\src\plugman\install.js:232:45
      

      Attachments

        Activity

          People

            TimBarham Tim Barham
            TimBarham Tim Barham
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2m
                2m
                Remaining:
                Remaining Estimate - 2m
                2m
                Logged:
                Time Spent - Not Specified
                Not Specified