Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24011] iOS: require fails to resolve paths like 'hyperloop/uikit/uilabel'

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-10-12T16:30:16.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.0.0
ComponentsiOS
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2016-10-10T18:31:10.000+0000
Updated2018-08-06T17:49:37.000+0000

Description

With the new require behavior, some old "legacy"-style require paths that used to work no longer do. Specifically, if the path has no leading '/', './', or '../' and the first segment of the path is a native module id - but the resources/js file doesn't exist in that module. This was particularly noticeable with hyperloop on 2.0.0 where we'd generate paths like 'hyperloop/uikit/uilabel', which actually resided in the user's app resources and not in the native hyperloop module itself.

Comments

  1. Christopher Williams 2016-10-10

    Combined this fix with the fix for similar issue on Android. Should likely cherry-pick the two commits to 6_0_X if the PR is approved/merged. iOS 6.1.0/master PR: https://github.com/appcelerator/titanium_mobile/pull/8493
  2. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source