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

CLI: Android build fails with cannot find module error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 8.1.0
    • Fix Version/s: Release 8.1.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      2019 Sprint 5

      Description

      Description

      The android build currently errors with the below, this is because it's trying to look for a dependency of the app used for polyfilling which was removed

      [LiveView] { Error: Cannot find module '@babel/polyfill/package.json'
          at Function.Module._resolveFilename (module.js:548:15)
          at Function.resolve (internal/module.js:18:19)
          at unmarkPackageAndDependencies (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/android/cli/commands/_build.js:2824:33)
          at AndroidBuilder.<anonymous> (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/android/cli/commands/_build.js:2840:5)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/node_modules/node-appc/lib/async.js:82:6
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/node_modules/async/dist/async.js:3888:9
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/node_modules/async/dist/async.js:473:16
          at replenish (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/node_modules/async/dist/async.js:1006:25)
          at iterateeCallback (/Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/node_modules/async/dist/async.js:995:17)
          at /Users/Josh/Library/Application Support/Titanium/mobilesdk/osx/8.1.0/node_modules/async/dist/async.js:969:16 code: 'MODULE_NOT_FOUND' }
      

      Steps to reproduce

      1. Build for Android

      Actual

      Above error

      Expected

      No error

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code