Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23820] Liveview: on classic apps Hyperloop requires in app.js does not trigger metabase generation

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-12-09T21:43:07.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsHyperloop, LiveView, Tooling
Labelsn/a
ReporterFeon Sua Xin Miao
AssigneeFeon Sua Xin Miao
Created2016-08-24T20:26:49.000+0000
Updated2018-08-06T17:57:30.000+0000

Description

Hyperloop system frameworks requires in *app.js* does not trigger hyperloop metabase generation. This is because liveview replaces and renames the original app.js to execute liveview.js module wrapper. *Steps to Reproduce* 1. Create a _classic_ mobile project with Hyperloop enabled 2. Modify _app.js_ to reference Hyperloop, i.e var UIView = require('UIKit/UIView'); 3. Enable Liveview 4. Build the project for device or sim 5. Launch the app if building for device *Actual Results* The app freezes on the splash screen, and error on output
[INFO]  [LiveView] Error Evaluating app.js @ Line: <null
[ERROR] File: app.js
[ERROR] Line: <null>
[ERROR] SourceId: <null>
[ERROR] Backtrace:
[ERROR]  undefined
*Expected Results* The project is able to run without error.

Comments

  1. Feon Sua Xin Miao 2016-12-09

    PR: https://github.com/appcelerator/liveview/pull/98 *To Test* 1. Follow reproduce steps 2. The project should run without Error Evaluating app.js *Note* We still need to address TIMOB-23818. At the moment, once the application is built, and Liveview is running, adding new Hyperloop references will still cause Liveview to error out, this is because the Hyperloop metabases is not generated.
  2. Jan Vennemann 2016-12-09

    PR approved and merged! I'll work on TIMOB-23818 and see how to regenerate the hyperloop metabase from within liveview.
  3. Eric Merriman 2018-08-06

    Cleaning up older fixed tickets from 2016 and earlier. If this ticket should not have been closed, please reopen it.

JSON Source