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

/bin/check_reqs is broken

    XMLWordPrintableJSON

Details

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

    Description

      Running `/bin/check_reqs` gives the following error:

      Environment is not supported: TypeError: Cannot read property 'os' of undefined
      

      This happens when `getMinimalRequiredVersionFor` is called without `windowsTargetVersion, windowsPhoneTargetVersion` params. (run -> checkOS (without these two params) -> getMinimalRequiredVersionFor (also no params of course))

      As I understand it this might be the case since 2 years, when these params were added to quite some methods calls - and to be read from config.xml first:
      https://github.com/apache/cordova-windows/commit/acfb01ead6040c6aec39ced31818b8fb96ee6998#diff-f477d7d5a4a7b8cc0bfe70b71a81920fL263
      Unfortunately the pure `run` call wasn't updated - and as it doesn't know anything about the target versions, it can not work.

      Attachments

        Issue Links

          Activity

            People

              Sujan12 Jan Piotrowski (janpio)
              Sujan12 Jan Piotrowski (janpio)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: