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

TiAPI: Require call in a node_modules directory causes infinite loop

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.0.3
    • Fix Version/s: Release 6.1.0
    • Component/s: Android, iOS
    • Labels:
      None
    • Environment:

      Ti SDK: 6.0.3.GA

      Description

      Description

      When a module that resides in node_modules requires another module, an infinite loop will occur and the app will never load and will stay hung on the splash screen

      Demo app is at https://www.dropbox.com/s/m4wy91x92gxw63m/demo.zip?dl=0

      I believe this only happens on iOS and Android,I have not got round to trying Windows out yet but reviewing the code it looks like this wont happen., Windows does not show this exact behavior, but instead fails with

      -- Start application log -----------------------------------------------------
      [ERROR] ----- Titanium Javascript Runtime Error -----
      [ERROR] In /node_modules/foo/lib/foo.js: 3,18
      [ERROR] Message: Uncaught Error: require: Could not load module bar
      

      Steps to reproduce
      1. Build the attached application for android or iOS
      Actual result

      App stays hung on the splash screen

      Expected

      App should load. Currently it throws an error, I believe this is because of another bug in the implementation, will file more tickets accordingly

        Attachments

          Activity

            People

            • Assignee:
              eharris Ewan Harris
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Christopher Williams
              Tester:
              Abir Mukherjee
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration