[TIMOB-13025] CLI: Several commands fail on Node.js v0.10.0
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-03-12T21:15:33.000+0000 |
Affected Version/s | Release 3.0.2 |
Fix Version/s | Release 3.1.0, 2013 Sprint 06 JS, 2013 Sprint 06 |
Components | CLI |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2013-03-11T19:07:57.000+0000 |
Updated | 2013-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
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3955
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