{ "id": "172033", "key": "TIMOB-26279", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2018-08-10T08:51:56.000+0000", "created": "2018-08-09T15:52:53.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-08-17T10:47:54.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "Created a new app, added Transpile option to tiapp.xml and some sample ES6 code and when building I get:\r\n\r\n{code}\r\n[ERROR] Error generating AST for \"/Users/jkneen/Documents/Appcelerator_Studio_Workspace/es6/app/controllers/index.js\"\r\n[ERROR] Unexpected token: name (i)\r\n[ERROR] line 7, column 4, position 71\r\n[ERROR] Alloy compiler failed\r\n{code}\r\n\r\nProject:\r\n\r\nhttps://www.dropbox.com/s/7e467yjzg4a8m1o/es6.zip?dl=1", "attachment": [], "flagged": false, "summary": "ES6 transpile not working", "creator": { "name": "jkneen", "key": "jkneen", "displayName": "Jason Kneen", "active": false, "timeZone": "Africa/Ceuta" }, "subtasks": [], "reporter": { "name": "jkneen", "key": "jkneen", "displayName": "Jason Kneen", "active": false, "timeZone": "Africa/Ceuta" }, "environment": null, "closedSprints": [ { "id": 1058, "state": "closed", "name": "2018 Sprint 16 SDK", "startDate": "2018-07-29T22:26:06.486Z", "endDate": "2018-08-12T22:26:00.000Z", "completeDate": "2018-08-13T17:38:16.757Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "440619", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Hey [~jkneen] can you provide some info on your env?\r\n\r\n- Are you using titanium or appc?\r\n- What's the alloy version you're using?\r\n\r\nI can compile the attached app just fine using alloy 1.13.1 (latest on npm), 1.12.0 (appc cli 7.0.4).\r\n\r\nBased off the error message you're probably using a version of alloy from before we switched to babel for parsing js code, which allows the alloy compile process to handle ES6. I think that was around alloy 1.10 timeframe", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-08-09T16:24:57.000+0000", "updated": "2018-08-09T16:25:35.000+0000" }, { "id": "440623", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Same here, I was able to compile it successfully. You can check your alloy version with {{alloy -v}} to confirm.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-09T18:40:52.000+0000", "updated": "2018-08-09T18:40:52.000+0000" }, { "id": "440633", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "That was the issue. I just downgraded Alloy to 1.8 and get the same error. Using latest again resolves the issue immediately.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-10T08:51:57.000+0000", "updated": "2018-08-10T08:51:57.000+0000" }, { "id": "440847", "author": { "name": "jkneen", "key": "jkneen", "displayName": "Jason Kneen", "active": false, "timeZone": "Africa/Ceuta" }, "body": "Yep, unfortunately an error between screen and keyboard -- I was using the Titanium CLI so of course no bundled Alloy -- doh!", "updateAuthor": { "name": "jkneen", "key": "jkneen", "displayName": "Jason Kneen", "active": false, "timeZone": "Africa/Ceuta" }, "created": "2018-08-17T10:47:54.000+0000", "updated": "2018-08-17T10:47:54.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }