[TIMOB-23820] Liveview: on classic apps Hyperloop requires in app.js does not trigger metabase generation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-12-09T21:43:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Hyperloop, LiveView, Tooling |
Labels | n/a |
Reporter | Feon Sua Xin Miao |
Assignee | Feon Sua Xin Miao |
Created | 2016-08-24T20:26:49.000+0000 |
Updated | 2018-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.
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.PR approved and merged! I'll work on TIMOB-23818 and see how to regenerate the hyperloop metabase from within liveview.
Cleaning up older fixed tickets from 2016 and earlier. If this ticket should not have been closed, please reopen it.