Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13025] CLI: Several commands fail on Node.js v0.10.0

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-03-12T21:15:33.000+0000
Affected Version/sRelease 3.0.2
Fix Version/sRelease 3.1.0, 2013 Sprint 06 JS, 2013 Sprint 06
ComponentsCLI
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2013-03-11T19:07:57.000+0000
Updated2013-06-05T17:42:04.000+0000

Description

Node.js v0.10 doesn't play well with the Titanium CLI. There are a number of errors: 1. Error building app with modules for iOS Simulator
[ERROR] Unable to run command "build"

/Users/chris/appc/titanium/node_modules/longjohn/index.js:111
      throw e;
            ^
RangeError: Maximum call stack size exceeded
2. Error building mobile web app (development) with precache images in tiapp.xml

[ERROR] Unable to run command "build"

TypeError: Arguments to path.join must be strings 0 [ 'TypeError: Arguments to path.join must be strings',
  '    at path.js:360:15',
  '    at Array.filter (native)',
  '    at Object.exports.join [as join] (path.js:358:36)',
  '    at /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.1.0/mobileweb/cli/commands/_build.js:573:19',
  '    at Array.forEach (native)',
  '    at Object.build.assembleTitaniumJS [as assembleTitaniumJS] (/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.1.0/mobileweb/cli/commands/_build.js:570:23)',
  '    at /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.1.0/node_modules/node-appc/lib/util.js:55:25',
  '    at /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.1.0/node_modules/node-appc/node_modules/async/lib/async.js:454:21',
  '    at /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.1.0/node_modules/node-appc/node_modules/async/lib/async.js:185:13',
  '    at /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/3.1.0/node_modules/node-appc/node_modules/async/lib/async.js:86:13' ]
There are probably more issues. A list of changes between 0.8 and 0.10 is encapsulated here: https://github.com/joyent/node/wiki/Api-changes-between-v0.8-and-v0.10

Comments

  1. Chris Barber 2013-03-12

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3955
  2. Shyam Bhadauria 2013-05-09

    Build command is working now on Node.js v0.10.3. So closing the issue. Used environment for verification SDK - 3.1.0.GA Appcelerator Studio, build: 3.1.1.201305072102 Node.js version - v0.10.3

JSON Source