Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26478] CLI: Cannot use LiveView with ES6

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2018-10-23T10:42:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsCLI
Labelsn/a
ReporterHans Knöchel
AssigneeUnknown
Created2018-10-23T07:41:34.000+0000
Updated2018-10-23T10:42:01.000+0000

Description

When trying to use LiveView (1.3.0) in an ES6 based project, the build succeeds, LiveView starts and then errors out, making it impossible to use:
[DEBUG] Loading: /Users/hans/Library/Developer/CoreSimulator/Devices/9D94B68D-07A8-4F5B-9C60-8562CA3C8914/data/Containers/Bundle/Application/8D3DF18D-44B5-4B5E-A819-D84B59E6BD03/App.app/app.js, Resource: app_js
 [LiveView]  Client connected
[ERROR] Script Error {
[ERROR]     column = 20;
[ERROR]     line = 666;
[ERROR]     message = "[LiveView] File Server unavailable. Host Unreachable @ 192.168.178.90:8324\n[LiveView] Please ensure your device and computer are on the same network and the port is not blocked.";
[ERROR]     sourceURL = "file:///Users/hans/Library/Developer/CoreSimulator/Devices/9D94B68D-07A8-4F5B-9C60-8562CA3C8914/data/Containers/Bundle/Application/8D3DF18D-44B5-4B5E-A819-D84B59E6BD03/App.app/app.js";
[ERROR]     stack = "    at _getRemoteSource(/app.js:666:20)\n    at _compile(/app.js:719:28)\n    at require(/app.js:586:23)\n    at connectServer(/app.js:493:17)\n    at patch(/app.js:425:23)\n    at (/app.js:764:14)\n    at global code(/app.js:769:3)";
[ERROR] }
[DEBUG] Application booted in 11079.484940 ms
When entering the IP to Chrome, the following is returned:
{"pid":938,"path":"/Users/hans/Documents/dev/path/to/project/","uptime":162.372,"alloy":true}
Working with LiveView is fundamental for our Appcelerator toolchain, so this should be fixed asap.

Comments

  1. Andrea Vitale 2018-10-23

    Same issue here! To develop without LiveView is impossible specially on Android where a single build, on my machine (mbp 2016), takes ~1.50mins to finish. Thanks!
  2. Ewan Harris 2018-10-23

    Issue is because liveview doesn't fully support import/export statements today. Will be fixed by linked ticket

JSON Source