リア充爆発日記

You don't even know what ria-ju really is.

Titaniumでlongjohn.js:184がでたら

こんなエラーがでたとき。

$ ti build --platform android --log-level info -T dist-playstore
Titanium Command-Line Interface, CLI version 3.2.0, Titanium SDK version 3.2.1.GA
Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.

Please report bugs to http://jira.appcelerator.org/


/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184
throw e;
^
TypeError: Cannot read property 'properties' of undefined

エラーがでているモジュール、ロングホーンだと思ってたら、違ってた。

で、これはTitaniumを再インストールすれば直るかもしれない。

$ sudo npm uninstall -g titanium
$ sudo rm -r ~/.titanium
$ npm install titanium -g

なんだったんだ。。

追記)
後日、不意に以下のエラーがでてビルドできなくなった。

~snip~
[ERROR] : Cannot find module '/Users/ria10/TitaniumProjects/MY_APP/undefined'
[ERROR] Alloy compiler failed

タイミングがズレての発生だったのでうろたえたけど、alloyをupdateすればよかった。

$ sudo npm install -g alloy

なんだったんだ。。(2回め)

Titanium Mobileで開発するiPhone/Androidアプリ

Titanium Mobileで開発するiPhone/Androidアプリ