Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
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
- is superceded by
-
CB-13870 `cordova requirements` is broken since change to default=UAP and with modern tooling
- Closed