Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24170

LiveView breaks relative path usage in require

    Details

    • Sprint:
      2017 Sprint 17 Tooling, 2017 Sprint 18 Tooling

      Description

      When requiring a module using relative paths, an app will error out if LiveView is running.

      var require_absolute_path = require('/test/myModule');
      console.error('require_absolute_path: ' + require_absolute_path);
       
      var require_relative_path = require('./myModule');
      console.error('require_relative_path: ' + require_relative_path);
      

      [INFO]  [LiveView] Error Evaluating /test/requireTest.js @ Line: <null>
      [ERROR] Couldn't find module: ./myModule for architecture: x86_64
      [ERROR] File: /test/requireTest.js
      [ERROR] Line: <null>
      [ERROR] SourceId: <null>
      [ERROR] Backtrace:
      [ERROR] undefined
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                brentonhouse Brenton House
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10300
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code