Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1783] TypeError: Cannot call method 'toString' of null

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-12-10T04:25:22.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterTorben Bohr
AssigneeShak Hossain
Created2013-08-27T18:28:55.000+0000
Updated2016-03-08T07:40:40.000+0000

Description

*Steps to Reproduce* Try to create new project - with no error. See attachments. When I try to 'setup' in console: *Error*
titanium setup
Titanium Command-Line Interface, CLI version 3.1.2
Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
..
/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:181
        throw e;
              ^
TypeError: Cannot call method 'toString' of null
    at prompt.getInput (/usr/local/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:497:29)
    at get (/usr/local/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:321:12)
    at /usr/local/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:280:7
    at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:108:13)
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:119:25
    at assembler (/usr/local/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:313:9)
    at /usr/local/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:322:32
    at /usr/local/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:597:5
    at onLine (/usr/local/lib/node_modules/titanium/node_modules/prompt/node_modules/read/lib/read.js:111:5)
*Note* All updates have been installed.

Attachments

FileDateSize
.log2013-08-27T18:28:57.000+000050965
Bildschirmfoto 2013-08-27 um 8.26.17 PM.png2013-08-27T18:29:13.000+000080504
diagnostic6544461720288690540.log2013-08-27T18:29:00.000+000010380

Comments

  1. Jamie Buckley 2013-08-28

    Hi Torben, Can you try updating to the latest version of node(10.17 and let me know if the problem persists?
  2. Torben Bohr 2013-08-28

    Hi, i updated to 0.10.17 - but the same problem.
  3. Daniel Sefton 2013-08-29

    Hi Torben, Can you try renaming ~/.titanium/config.json to ~/.titanium/config.bak Then re-run "titanium setup". The prompt.js library has been re-written for 3.2, so it shouldn't happen in future. Thanks!
  4. Mostafizur Rahman 2013-09-23

    Hi Torben Bohr, We are not received update info from you. I am going to mark as resolved. Please give us update if you have still same problem again. Thanks
  5. Răzvan Rădulescu 2013-11-07

  6. Chris Barber 2013-12-10

    We have already fixed this in Titanium CLI 3.2.0. Currently, there is no plans to backport a fix to 3.1.x.
  7. Shak Hossain 2013-12-18

    Closing since the related bugs have been fixed in the latest build.

JSON Source