Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4991] LiveView causes error with ES6 code

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2017-05-24T16:49:50.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsES6, LiveView, Titanium
ReporterBrenton House
AssigneeShak Hossain
Created2017-05-23T23:07:56.000+0000
Updated2017-05-24T16:49:50.000+0000

Description

If there is ES6 code in the app, and the app is then saved, an error is generated. Steps to recreate: 1. Create a new Titanium app using the CLI 2. Open the file controllers/index.js 3. Add the following line:
[1,2,3,4,5].forEach(x => console.log(x));
4. Run app: appc ti build --platform ios --target simulator --log-level trace --liveview 5. App should start successfully. 6. Save the file: controllers/index.js to force LiveView restart. The following error occurs: {noformat} [ERROR] TypeError: Alloy.createController is not a function. (In 'Alloy.createController("index")', 'Alloy.createController' is undefined) [ERROR] File: app.js [ERROR] Line: 6 {noformat}

Comments

  1. Christopher Williams 2017-05-24

    Marking as duplicate of CLI ticket around same issue.

JSON Source