cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Magoon (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CB-12855) 'Undefined is not a function' on ES6 function call for Cordova Android
Date Mon, 05 Jun 2017 17:23:04 GMT

     [ https://issues.apache.org/jira/browse/CB-12855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Magoon closed CB-12855.
--------------------------------
    Resolution: Not A Bug

This issue is only due to using an old version of node, which is now deprecated in Cordova.

> 'Undefined is not a function' on ES6 function call for Cordova Android
> ----------------------------------------------------------------------
>
>                 Key: CB-12855
>                 URL: https://issues.apache.org/jira/browse/CB-12855
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: 6.5.0
>         Environment: node 0.12.2
>            Reporter: Jonathan Magoon
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Using an older version of node (if it's still in the backwards compatible window). A
change in Cordova Android from hardcoding the path for Android Studio to iterating through
the applications calls .startsWith('Android Studio'), (which I'm guessing exists in a later
node version and not the one we are stuck with (0.12.2)) breaks `cordova build android` (or
run, etc.) with 'Undefined is not a function'.
> Swapping to 'indexOf' fixes this. Commit is here:
> https://github.com/apache/cordova-android/commit/e3198b0f6b3c0d0877e8c1618bea1874392c51dd
> I can write a PR for this if this is something that should be backwards compatible. Please
let me know if I will need to version lock with a previous Cordova Android version due to
the old version of node we use.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message