Titanium Mobile
  1. Titanium Mobile
  2. TIMOB-13025

CLI: Several commands fail on Node.js v0.10.0

    Details

      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

        Issue Links

          Activity

          Hide
          Chris Barber added a comment -
          Show
          Chris Barber added a comment - Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3955
          Hide
          Shyam Bhadauria added a comment -

          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

          Show
          Shyam Bhadauria added a comment - 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

            People

            • Assignee:
              Chris Barber
              Reporter:
              Chris Barber
              Reviewer:
              Christian Sullivan (Inactive)
            • Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development