Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24061] Android: Different debug-log for incorrect CommonJS usage

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2016-10-24T18:51:28.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.0
ComponentsAndroid
Labelsn/a
ReporterHans Knöchel
AssigneeHans Knöchel
Created2016-10-21T14:05:14.000+0000
Updated2018-08-06T17:49:14.000+0000

Description

When we want to require a CommonJS module without a "/" at the beginning, the debug-log is different on iOS and Android. iOS: {quote} require called with un-prefixed module id: helper/test, should be a core or CommonJS module. Falling back to old Ti behavior and assuming it's an absolute path: /helper/test {quote} Android: {quote} require called with un-prefixed module id, should be a core or CommonJS module. Falling back to old Ti behavior and assuming it's an absolute file {quote} We should just unify them to display the actual bad boy, so the devs can migrate more easy.

Comments

  1. Hans Knöchel 2016-10-21

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/8531 PR (6_0_X): https://github.com/appcelerator/titanium_mobile/pull/8532
  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