You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Filip Maj (JIRA)" <ji...@apache.org> on 2013/06/10 20:46:21 UTC
[jira] [Resolved] (CB-3742) CLI 'serve' command fails with 'cannot
call method update_project' of undefined
[ https://issues.apache.org/jira/browse/CB-3742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj resolved CB-3742.
---------------------------
Resolution: Fixed
Fix Version/s: 2.9.0
I've patched this in latest master2 branch and am pushing to npm now as 2.8.14.
Please note, though, that most likely the {{serve}} command will go away in 3.0. The {{ripple}} command is a more robust and flexible testing/emulating-in-browser approach and we recommend using that instead.
> CLI 'serve' command fails with 'cannot call method update_project' of undefined
> -------------------------------------------------------------------------------
>
> Key: CB-3742
> URL: https://issues.apache.org/jira/browse/CB-3742
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.8.0
> Environment: I'm running 64 bit CentOS6.4 in virtual box (host system is windows 7).
> I'm using node 0.10.10, jdk 1.7, ant 1.8, the latest and greatest android sdk 22.0.1/version 17 of the build and platform tools). cordova --version returns 2.8.13.
> I have a colleague who is running macos 10.7.5 who received the same error for 'cordova serve ios'
> Reporter: Dan Moore
> Assignee: Filip Maj
> Fix For: 2.9.0
>
>
> I've successfully installed cordova-cli (thanks for this, by the way!) and can create a project and add the android platform.
> These all work:
> 'cordova create kewlapp kewlapp'
> 'cordova -d platform android'
> 'cordova build android'
> The emulator works (with a started 2.3.3 emulator):
> 'cordova emulate android'
> However, when I run 'cordova serve android' I get this error:
> [TypeError: Cannot call method 'update_project' of undefined]
> 'cordova -d serve android' has the same output.
> From digging around in the node src, it seems that the parser created on line 125 of node_modules/cordova/src/serve.js is undefined for some reason. I can't imagine why, though I did notice that node_modules/cordova/platforms.js has the android url pointing to cordova-ios.git. Changing that to android.git didn't resolve the issue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira