Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Appcelerator Studio 4.5.0
    • Component/s: Titanium SDK & CLI
    • Environment:

      iOS
      TI SDK: 6.1.0.v20170519131839 (RC Build)
      Alloy: 1.10.0
      JSCore - Enabled
      Hyperloop: Not enabled

      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:

      [ERROR] TypeError: Alloy.createController is not a function. (In 'Alloy.createController("index")', 'Alloy.createController' is undefined)
      [ERROR] File: app.js
      [ERROR] Line: 6
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shossain Shak Hossain (Inactive)
                Reporter:
                brentonhouse Brenton House
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration