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

Android: ERR_INVALID_CALLBACK error when building a app/module on Node 10

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 7.1.1, Release 7.3.0, Release 7.2.0
    • Fix Version/s: Release 7.5.0
    • Component/s: Android, CLI
    • Labels:
      None
    • Environment:

      Ti SDK: 7.1.1.GA, 7.2.0.v20180528150435, 7.3.0.v20180530072516
      Node 10.3.0

    • Story Points:
      5
    • Sprint:
      2018 Sprint 12 SDK, 2016 Sprint 17 SDK

      Description

      Description

      Building an app or module with Node 10 throws the following error

      TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
          at maybeCallback (fs.js:157:9)
          at Object.fs.exists (fs.js:235:3)
          at SimpleFileCache.persist (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/android/cli/hooks/aar-transform.js:484:11)
          at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/android/cli/hooks/aar-transform.js:379:9
          at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/node_modules/async/dist/async.js:460:16
          at replenish (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/node_modules/async/dist/async.js:977:25)
          at iterateeCallback (/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/node_modules/async/dist/async.js:967:17)
          at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/node_modules/async/dist/async.js:944:16
          at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/android/cli/hooks/aar-transform.js:356:12
          at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/node_modules/async/dist/async.js:460:16
      ---------------------------------------------
          at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/node_modules/extract-zip-fork/index.js:26:15
          at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/node_modules/yauzl/index.js:32:7
          at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/node_modules/yauzl/index.js:123:16
          at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/node_modules/yauzl/index.js:473:5
          at /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.v20180528150435/node_modules/fd-slicer/index.js:32:7
      

      Steps to reproduce

      1. Download Node 10
      2. Build a module or an app

      Actual

      Above error

      Expected

      No error should occur

        Attachments

          Activity

            People

            • Assignee:
              eharris Ewan Harris
              Reporter:
              eharris Ewan Harris
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code