{ "id": "167882", "key": "AC-4991", "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": "2017-05-24T16:49:50.000+0000", "created": "2017-05-23T23:07:56.000+0000", "labels": [ "ES6", "LiveView", "Titanium" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [ { "id": "54932", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "167883", "key": "CLI-1219", "fields": { "summary": "LiveView: Upgrade to handle ES6 sytax", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-24T16:49:50.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "If there is ES6 code in the app, and the app is then saved, an error is generated.\r\n\r\nSteps to recreate:\r\n\r\n1. Create a new Titanium app using the CLI\r\n2. Open the file {{controllers/index.js}}\r\n3. Add the following line: \r\n\r\n\r\n{code:java}\r\n[1,2,3,4,5].forEach(x => console.log(x));\r\n{code}\r\n\r\n4. Run app: {{appc ti build --platform ios --target simulator --log-level trace --liveview}}\r\n5. App should start successfully.\r\n6. Save the file: {{controllers/index.js}} to force LiveView restart.\r\n\r\nThe following error occurs:\r\n\r\n\r\n{noformat}\r\n[ERROR] TypeError: Alloy.createController is not a function. (In 'Alloy.createController(\"index\")', 'Alloy.createController' is undefined)\r\n[ERROR] File: app.js\r\n[ERROR] Line: 6\r\n{noformat}\r\n", "attachment": [], "flagged": false, "summary": "LiveView causes error with ES6 code", "creator": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": "iOS\r\nTI SDK: 6.1.0.v20170519131839 (RC Build)\r\nAlloy: 1.10.0\r\nJSCore - Enabled\r\nHyperloop: Not enabled", "comment": { "comments": [ { "id": "420335", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Marking as duplicate of CLI ticket around same issue.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-05-24T16:49:50.000+0000", "updated": "2017-05-24T16:49:50.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }