Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16232

CLI: TypeError: Cannot read property 'options' of undefined

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 3.2.1
    • Component/s: CLI
    • Environment:

      Description

      Description:

      1. Install the latest CLI from here:

      sudo npm install -g git://github.com/appcelerator/titanium.git#3_2_X


      2. Create an classic/alloy app in studio.
      3. Build the app for any platform

      Actual Result:

      1. We get errors:

      /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184
              throw e;
                    ^
      TypeError: Cannot read property 'options' of undefined
          at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140114125643/node_modules/titanium-sdk/lib/titanium.js:64:11
          at Array.forEach (native)
          at set (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140114125643/node_modules/titanium-sdk/lib/titanium.js:63:24)
          at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140114125643/node_modules/titanium-sdk/lib/titanium.js:99:6
          at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140114125643/android/cli/commands/_build.js:872:4
          at CLI._fireHookCallback (/usr/local/lib/node_modules/titanium/lib/hook.js:245:12)
          at /usr/local/lib/node_modules/titanium/lib/hook.js:224:10
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:229:13
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:139:25
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:17
      ---------------------------------------------
          at Object.run (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8)
          at find (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14)
          at q.process (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:728:21)
          at processImmediate (timers.js:330:15)
      [ERROR] Application Installer abnormal process termination. Process exit value was 8
      

      2. Tried running the CLI command which studio uses directly in command prompt & we get the same error as above.

      Expected Result:

      1. We should not get any errors & the app should build & launch successfully.

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              lchoudhary Lokesh Choudhary
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18225
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code