Titanium JIRA Archive
Appcelerator Community (AC)

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

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2013-11-08T23:56:00.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterRăzvan Rădulescu
AssigneeMauro Parra-Miranda
Created2013-11-07T18:08:18.000+0000
Updated2016-03-08T07:40:47.000+0000

Description

Comments

  1. Răzvan Rădulescu 2013-11-07

    Some new info. I didn't have an sdk installed yet when this happened. I then proceeded with installing the sdk and now ti setup worked, but ti setup -a still gives an error:
       /usr/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184
               throw e;
                     ^
       TypeError: Object true has no method 'trim'
           at /usr/lib/node_modules/titanium/lib/commands/setup.js:316:42
           at Array.forEach (native)
           at /usr/lib/node_modules/titanium/lib/commands/setup.js:315:25
           at /usr/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:316:32
           at /usr/lib/node_modules/titanium/node_modules/async/lib/async.js:116:25
           at assembler (/usr/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:313:9)
           at /usr/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:322:32
           at /usr/lib/node_modules/titanium/node_modules/prompt/lib/prompt.js:597:5
           at onLine (/usr/lib/node_modules/titanium/node_modules/prompt/node_modules/read/lib/read.js:111:5)
       
    Except now it's further down on the question list, the last question before the error was Path to the Android NDK: (this is needed for building native Titainum Modules for Android). Note that I added in the android.ndkPath manually to config.json on the basis of android.sdkPath.
  2. Chris Barber 2013-11-08

    Dupe of TC-2834. The setup command has been completely rewritten in v3.2 and this specific error is no longer a problem.
  3. Răzvan Rădulescu 2013-11-09

    Thanks... didn't see that one.
  4. Mauro Parra-Miranda 2013-11-24

    DUP issue.

JSON Source