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

Android: Production builds crash if Node 14 is installed

    Details

    • Story Points:
      1

      Description

      I know it is not supported officially but I'm giving nodejs 14.16.1 a try.
      Building debug versions works fine. Just creating a store build will crash with:

      [INFO]  Analyzing module files
      [INFO]  Processing JavaScript files
      [ERROR] TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Object
          at writeFile (fs.js:1436:5)
          at go$writeFile (/home/user/.titanium/mobilesdk/linux/10.0.0/node_modules/graceful-fs/graceful-fs.js:139:14)
          at Object.writeFile (/home/user/.titanium/mobilesdk/linux/10.0.0/node_modules/graceful-fs/graceful-fs.js:136:12)
          at /home/user/.titanium/mobilesdk/linux/10.0.0/node_modules/universalify/index.js:10:14
          at new Promise (<anonymous>)
          at Object.writeFile (/home/user/.titanium/mobilesdk/linux/10.0.0/node_modules/universalify/index.js:7:14)
          at AndroidBuilder.writeEnvironmentVariables (/home/user/.titanium/mobilesdk/linux/10.0.0/android/cli/commands/_build.js:2573:11)
          at AndroidBuilder.copyResources (/home/user/.titanium/mobilesdk/linux/10.0.0/android/cli/commands/_build.js:2724:8)
          at async AndroidBuilder.generateAppProject (/home/user/.titanium/mobilesdk/linux/10.0.0/android/cli/commands/_build.js:2261:2)
          at async AndroidBuilder.run (/home/user/.titanium/mobilesdk/linux/10.0.0/android/cli/commands/_build.js:1545:3)
      

      Setup:

      • Fedora Linux 34
      • node 14.16.1
      • titanium 5.3.1
      • ti sdk 10.0.0.RC
      • alloy 1.16.0

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              michael Michael Gangolf
              Reviewer:
              Ewan Harris
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration