Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24204] Android: require() not working with Android if path has ../ after Titanium SDK 6.0.0+

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-01-20T17:35:38.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.1.0, Release 6.0.1
ComponentsAndroid
Labelsandroid, hyperloop, nodejs, qe-6.1.0, regression
ReporterHazem Khaled
AssigneeGary Mathews
Created2016-12-08T17:02:23.000+0000
Updated2017-01-20T17:35:44.000+0000

Description

Hi, basecontroller with ../ was working till Titanium SDK 6, not it's working only with --liveview, so app not working on the production build. error code
exports.baseController = '../widgets/nl.fokkezb.form/controllers/field';
more info and workaround https://github.com/FokkeZB/nl.fokkezb.form/issues/34 I think it's related to TIMOB-24011 or TIMOB-16078

Comments

  1. Sharif AbuDarda 2016-12-08

    Hello, Can you attach a sample project, so we can verify the issue in SDK 6.0.0.GA? Thanks.
  2. Brenton House 2016-12-08

  3. Hazem Khaled 2016-12-08

    I hope this one can help, otherwise i'll write another simple example https://github.com/fokkezb/nl.fokkezb.form/tree/test @Brenton i think it's, while mine working only with liveview, but not working without
  4. Gary Mathews 2016-12-09

    master: https://github.com/appcelerator/titanium_mobile/pull/8672 6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8673
  5. Josh Longton 2016-12-12

    Verified as fixed require() now works with paths that contain ../. Tested on: {noformat} macOS Sierra 10.12.1 Nexus 5X (6.0.1) Nexus 6p (7.0) android emulator (4.4.2, 6.0) Ti SDK: 6.0.1.v20161212020144 Appc NPM: 4.2.8 App CLI: 6.0.0 Node v4.6.0 {noformat} *Closing Ticket.*
  6. Eric Merriman 2017-01-20

    Reopening to add version and to allow back port.
  7. Eric Merriman 2017-01-20

    Reopened in error. Closing.

JSON Source