Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14893] CLI: When building, receive error: TypeError: Object # has no method 'get'

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2013-08-19T16:31:01.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsCLI
Labelsandroid, cli, ios, triage
ReporterAdam Fennell
AssigneeChris Barber
Created2013-08-15T19:11:48.000+0000
Updated2017-03-22T23:02:10.000+0000

Description

I can successfully build using Ti SDK versions upto and including 3.2.0.v20130730132443, for emulator or device, targeting iOS or Android. However, when I try using any more recent SDK versions (e.g. 3.2.0.v20130814111647), the CLI build fails immediately with the following red text in the console: [ERROR] : TypeError: Object # has no method 'get' [ERROR] : at detectPlugins (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\lib\tiplugin.js:156:44) [ERROR] : at exports.detect.async.parallel.project (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\lib\tiplugin.js:63:4) [ERROR] : at _parallel (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:521:25) [ERROR] : at async.each (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:108:13) Builds an existing app or module project. Android Build Options: -L, --alias the alias for the keystore -A, --android-sdk the path to the Android SDK -B, --avd-abi the abi for the avd -I, --avd-id the id for the avd -S, --avd-skin the skin for the avd [default: HVGA] -K, --keystore the location of the keystore file -O, --output-dir the output directory when using dist-playstore -P, --password the password for the keystore [ERROR] : at Array.forEach (native) [ERROR] : at _each (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:32:24) [ERROR] : at async.each (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:107:9) [ERROR] : at _parallel (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:520:20) [ERROR] : at async.parallel (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:536:9) [ERROR] : at Object.detect (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\lib\tiplugin.js:61:8) [ERROR] : at exports.execFile (child_process.js:594:9) [ERROR] : at exports.exec (child_process.js:481:18) -T, --target the target to build for [emulator, device, dist-playstore] blackberry Build Options: -D, --debug-token the path to the debug token bar file -A, --ip-address
the internet address of the simulator or device -K, --keystore-password the password given while registering the application signing keys -N, --ndk the path to the BlackBerry Native Development SDK -O, --output-dir the path containing the signed bar file -P, --password the password used on the simulator or device [ERROR] : at exports.detect.async.series.cached (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\lib\android.js:103:4) [ERROR] : at async.series.results (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:548:21) [ERROR] : at _asyncMap (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:224:13) [ERROR] : at async.eachSeries.iterate (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:131:13) [ERROR] : at async.eachSeries.iterate (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:142:25) [ERROR] : at _asyncMap (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:226:17) [ERROR] : at exports.execFile (child_process.js:594:9) [ERROR] : at exports.exec (child_process.js:481:18) [ERROR] : at exports.detect.async.series.exec.cwd (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\lib\android.js:90:4) [ERROR] : at async.series.results (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:548:21) [ERROR] : at _asyncMap (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:224:13) [ERROR] : at async.eachSeries.iterate (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:131:13) [ERROR] : at async.eachSeries.iterate (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:142:25) [ERROR] : at _asyncMap (C:\Users\Adam\AppData\Roaming\Titanium\mobilesdk\win32\3.2.0.v20130814111647\node_modules\node-appc\node_modules\async\lib\async.js:226:17)

Comments

  1. Daniel Sefton 2013-08-15

    I've also been getting this, but only for Alloy projects. Escalating now.
  2. Adam Fennell 2013-08-16

    This project is an Alloy v1.1 app. After upgrading today to Alloy 1.2 & CLI 3.1.2, this issue still occurs exactly as described.
  3. Adam Fennell 2013-08-19

    I know there's only been 1 business day gone (at best) since this issue was raised, so please excuse the question. I'd like to know what the estimated turnaround of issues are, on average. This will help me know whether to hold out for future releases before publishing our app. An answer along the lines of a week, couple of weeks, a month, a couple of months, would be great. Thanks in advance.
  4. Chris Barber 2013-08-19

    If you want to use a 3.2.0 unstable SDK, then you need to upgrade to the latest 3.2.0 unstable Titanium CLI.
       sudo npm install -g https://github.com/appcelerator/titanium.git
       
  5. Eduardo Gomez 2013-08-28

    Hi [~cbarber], a developer wants to use 3.2.0 and gets the following errors:
       sudo npm install -g git://github.com/appcelerator/titanium.git
       unbuild titanium@3.1.2
       npm http GET https://registry.npmjs.org/fields
       npm http GET https://registry.npmjs.org/async
       npm http GET https://registry.npmjs.org/colors
       npm http GET https://registry.npmjs.org/humanize
       npm http GET https://registry.npmjs.org/longjohn
       npm http GET https://registry.npmjs.org/jade
       npm http GET https://registry.npmjs.org/moment
       npm http GET https://registry.npmjs.org/node-appc
       npm http GET https://registry.npmjs.org/optimist
       npm http GET https://registry.npmjs.org/request
       npm http GET https://registry.npmjs.org/semver
       npm http GET https://registry.npmjs.org/sprintf
       npm http GET https://registry.npmjs.org/wrench
       npm http GET https://registry.npmjs.org/temp
       npm http GET https://registry.npmjs.org/winston
       npm http 304 https://registry.npmjs.org/fields
       npm http 304 https://registry.npmjs.org/async
       npm http 304 https://registry.npmjs.org/colors
       npm http 304 https://registry.npmjs.org/longjohn
       npm http 304 https://registry.npmjs.org/humanize
       npm http 304 https://registry.npmjs.org/jade
       npm http 304 https://registry.npmjs.org/moment
       npm http 304 https://registry.npmjs.org/node-appc
       npm http 304 https://registry.npmjs.org/semver
       npm http 304 https://registry.npmjs.org/optimist
       npm http 304 https://registry.npmjs.org/sprintf
       npm http 304 https://registry.npmjs.org/request
       unbuild titanium@3.2.0
       npm http GET https://registry.npmjs.org/semver/-/semver-2.0.11.tgz
       npm ERR! Error: No compatible version found: node-appc@'>=0.2.0-0 <0.3.0-0'
       npm ERR! Valid install targets:
       npm ERR! ["0.1.28-cr","0.1.29-alpha","0.1.29-beta","0.1.29-cr","0.1.30-alpha","0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.1.10","0.1.11","0.1.12","0.1.13","0.1.14","0.1.15","0.1.16","0.1.17","0.1.18","0.1.19","0.1.20","0.1.21","0.1.22","0.1.23","0.1.24","0.1.25","0.1.26","0.1.27","0.1.28-cr","0.1.28","0.1.29-alpha","0.1.29-beta","0.1.29-cr","0.1.29","0.1.30-alpha","0.1.30-cr","0.1.30"]
       npm ERR! Â  Â  at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:719:10)
       npm ERR! Â  Â  at next (/usr/local/lib/node_modules/npm/lib/cache.js:698:17)
       npm ERR! Â  Â  at /usr/local/lib/node_modules/npm/lib/cache.js:675:5
       npm ERR! Â  Â  at saved (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:142:7)
       npm ERR! Â  Â  at Object.oncomplete (fs.js:107:15)
       npm ERR! If you need help, you may report this log at:
       npm ERR! Â  Â  <http://github.com/isaacs/npm/issues>;
       npm ERR! or email it to:
       npm ERR! Â  Â  <npm-@googlegroups.com>
       
       npm ERR! System Darwin 12.4.0
       npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "git://github.com/appcelerator/titanium.git"
       npm ERR! cwd /Users/markboyer
       npm ERR! node -v v0.10.13
       npm ERR! npm -v 1.3.2
       npm http 304 https://registry.npmjs.org/temp
       npm http 304 https://registry.npmjs.org/wrench
       npm http 304 https://registry.npmjs.org/winston
       npm http 200 https://registry.npmjs.org/semver/-/semver-2.0.11.tgz
       npm ERR! 
       npm ERR! Additional logging details can be found in:
       npm ERR! Â  Â  /Users/markboyer/npm-debug.log
       npm ERR! not ok code 0
       
    Please advise.
  6. Chris Barber 2013-08-28

    [~egomez] Titanium CLI requires node-appc 0.2 which is not published yet. Until node-appc 0.2.0 is published, or we setup CI builds, you'll need to manually clone the "titanium" git repo and manually update package.json, run npm install, and manually pull node-appc master from git. On a side note, not sure why your comment was attached to this ticket. It doesn't appear to relate.
  7. Eduardo Gomez 2013-08-29

    Thanks, [~cbarber]. The reason to ask here was because a couple of developers were getting: "TypeError: Object # has no method 'get'" when building on 3.2 CI. In regards with node-appc 0.2, I was wondering is there a time frame for publishing it?
  8. Chris Barber 2013-08-29

    node-appc 0.2 will ship when 3.2 ships. We may have CI builds of Titanium CLI which would include the latest node-appc before 3.2 ships.
  9. Lee Morris 2017-03-22

    Closing ticket as "Won't Fix".

JSON Source