Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16232] CLI: TypeError: Cannot read property 'options' of undefined

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-01-20T22:00:02.000+0000
Affected Version/sRelease 3.2.1
Fix Version/s2014 Sprint 02, 2014 Sprint 02 Core, Release 3.2.1, Release 3.3.0
ComponentsCLI
Labelsmodule_CLI, qe-3.2.1, qe-testadded
ReporterLokesh Choudhary
AssigneeChris Barber
Created2014-01-18T00:44:45.000+0000
Updated2014-02-24T19:30:03.000+0000

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.

Comments

  1. Lokesh Choudhary 2014-01-18

    Tried with latest 3.3.X SDK and was able to reproduce the issue.
  2. Chris Barber 2014-01-20

    This has been fixed as of CI build 3.2.1.v20140117222448 and 3.3.0.v20140117222449.
  3. Lokesh Choudhary 2014-01-21

    Verified the fix & we do not get any errors while trying to build. Closing. Environment: Appc Studio : 3.2.1.201401201818 Ti SDK : 3.2.1.v20140117222448 , 3.3.0.v20140117222449 Mac OSX : 10.8.5 Alloy : 1.3.1-beta3 CLI - 3.2.1 from sudo npm install -g git://github.com/appcelerator/titanium.git#3_2_X Samsung Galaxy S4 running android 4.2.2
  4. Janusz Hatala 2014-02-10

    I have exactly the same problem but on Windows 7 (64b) OS - I've just updated Titanium SDK 3.2.1, CLI 3.0.0, Alloy 1.3.1, Studio 3.2.1.201402041146 Trying to build new project of classic app I get the same error: C:\Users\Janusz\AppData\Roaming\npm\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:184 throw e; ^ TypeError: Cannot read property 'properties' of undefined ...
  5. Chris Barber 2014-02-10

    [~janusz.hatala] Titanium CLI 3.0.0 is quite old. You should update to the latest version by running:
       npm install -g titanium
       
  6. Janusz Hatala 2014-02-11

    Thank You, now it works, how could I overlook that thing, sorry.

JSON Source