{ "id": "111394", "key": "AC-1921", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-03-19T16:24:01.000+0000", "created": "2013-03-19T16:11:18.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40:50.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "According to the [Alloy Troubleshooting Doc|http://docs.appcelerator.com/titanium/latest/#!/guide/Alloy_Debugging_and_Troubleshooting-section-34637808_AlloyDebuggingandTroubleshooting-%5BERROR%5D+Noapp.jsfound.+Ensuretheapp.jsfileexistsinyourproject%27sResourcesdirectory.], we should run {{alloy compile --config platform=}} when the contents of our Resources directory are modified or the directory is removed. I ran this command in an older project and got the following error:\r\n\r\n{code:none}\r\npath.js:360\r\n throw new TypeError('Arguments to path.join must be strings');\r\n ^\r\nTypeError: Arguments to path.join must be strings\r\n at path.js:360:15\r\n at Array.filter (native)\r\n at Object.exports.join (path.js:358:36)\r\n at loadGlobalStyles (/usr/local/Cellar/node/0.10.0/lib/node_modules/alloy/Alloy/commands/compile/index.js:572:25)\r\n...\r\n{code}\r\n\r\nThe problem is that the \"theme\" parameter to {{loadGlobalStyles()}} is undefined. To work around this issue, I modified line 571 of {{commands/compile/index.js}} to use an empty string when this happens:\r\n\r\n{code:javascript}\r\nvar themeGlobal = path.join(appPath,'themes',theme||'',CONST.DIR.STYLE,CONST.GLOBAL_STYLE);\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "TypeError in alloy compile (node 0.10)", "creator": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Alloy 1.0.0, OSX 10.8.2, node 0.10.0", "comment": { "comments": [ { "id": "242919", "author": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Error does not occur on node 0.8.22. Feel free to close the bug if you like or leave it open as a reminder.", "updateAuthor": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T16:19:04.000+0000", "updated": "2013-03-19T16:19:04.000+0000" }, { "id": "242921", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Already resolved in ALOY-550", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T16:24:01.000+0000", "updated": "2013-03-19T16:24:01.000+0000" }, { "id": "281010", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "DUP issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:29:56.000+0000", "updated": "2013-11-24T22:29:56.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }