Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11624] CLI: Cannot call method 'forEach' of undefined

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-08-12T20:55:18.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 22 JS, 2012 Sprint 22
ComponentsCLI
LabelsCLI, qe-manualtest
ReporterMario
AssigneeChris Barber
Created2012-10-30T11:16:29.000+0000
Updated2014-08-12T20:55:48.000+0000

Description

>$ titanium help

/usr/local/lib/node_modules/titanium/lib/titanium.js:123
	config.paths.sdks.forEach(env.scanSdkPath);
	                  ^
TypeError: Cannot call method 'forEach' of undefined
    at run (/usr/local/lib/node_modules/titanium/lib/titanium.js:123:20)
    at /usr/local/lib/node_modules/titanium/lib/titanium.js:66:4
    at Object.<anonymous> (/usr/local/lib/node_modules/titanium/lib/titanium.js:71:3)
    at Module.Module._compile [as _compile] (module.js:449:26)
    at Object.Module._extensions..js [as .js] (module.js:467:10)
    at Module.Module.load [as load] (module.js:356:32)
    at Function.Module._load [as _load] (module.js:312:12)
    at Module.Module.require [as require] (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/titanium/bin/titanium:4:1)

Comments

  1. Chris Barber 2012-10-31

    This was fixed in this commit: https://github.com/appcelerator/titanium/commit/bb39599206cf4fb28bf902a66282cb80163716a1.
  2. Paras Mishra 2013-01-16

    Running "titanium help" command, help menu is shown as expected with no error. Tested on : SDK version: 3.0.1.v20130111165328 , 3.0.0.GA CLI version : 3.0.22 OS : MAC OSX 10.7.5, Mac OS X 10.8.2 XCode : 4.5.1
  3. Olga Romero 2014-08-12

    reopened to fix labels

JSON Source