Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28382] iOS: Requiring a native module errors when building with liveview

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2021-03-16T14:48:56.000+0000
Affected Version/sRelease 10.0.0
Fix Version/sRelease 10.0.0
ComponentsCLI, iOS
Labelsregression
ReporterEwan Harris
AssigneeEwan Harris
Created2021-03-11T19:10:09.000+0000
Updated2021-03-16T14:48:56.000+0000

Description

Description

When requiring a native module with liveview enabled it will error on startup with the below, Android does not error on startup however.
[ERROR] TypeError: originalRequire is not a function. (In 'originalRequire(moduleId)', 'originalRequire' is undefined)
[ERROR] File: app.js
[ERROR] Line: 7728
[ERROR] SourceId: undefined
[ERROR] Backtrace:
[ERROR]  undefined

Description

1. Build kitchensink-v2 to iOS with liveview enabled

Actual

Errors with above error on startup

Expected

Does not error

Comments

  1. Ewan Harris 2021-03-11

    This can also be reprod by adding a native require to a classic app instead of using KS if you want a faster feedback loop
  2. Ewan Harris 2021-03-12

    https://github.com/appcelerator/liveview/pull/215
  3. Christopher Williams 2021-03-12

    * master: https://github.com/appcelerator/titanium_mobile/pull/12562 * 10_0_X: https://github.com/appcelerator/titanium_mobile/pull/12564
  4. Satyam Sekhri 2021-03-15

    FR Passed. Waiting for Jenkins build
  5. Christopher Williams 2021-03-16

    merged to master and 10_0_X for 10.0.0 target.

JSON Source