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

Run script in cordova-android projects throws exception with help flag

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-android
    • Environment:

      cordova-android 5.1.0, windows 10

      Description

      Running cordova\run.bat --help within an Android project results in a TypeError and a thrown exception. I'm talking about the platform only workflow (not using the Cordova CLI) as described here

      ^
      TypeError: Cannot read property '1' of undefined
      at Object.module.exports.help (c:\apps\hello\platforms\android\cordova\lib\run.js:120:62)
      at Object.<anonymous> (c:\apps\hello\platforms\android\cordova\run:28:26)
      at Module._compile (module.js:460:26)
      at Object.Module._extensions..js (module.js:478:10)
      at Module.load (module.js:355:32)
      at Function.Module._load (module.js:310:12)
      at Function.Module.runMain (module.js:501:10)
      at startup (node.js:129:16)
      at node.js:814:3

        Attachments

          Activity

            People

            • Assignee:
              vladimir.kotikov Vladimir Kotikov
              Reporter:
              riknoll Richard B Knoll
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: