Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-16744

[JavaScript] yarn perf fails with ReferenceError: exports is not defined in ES module scope

    XMLWordPrintableJSON

Details

    Description

      `yarn perf` fails with error below starting with https://github.com/apache/arrow/commit/50fbfa14aa612d638d54925ce9b5eaaaa7a9dd4b

       

      cd arrow
      git checkout -f 50fbfa14aa612d638d54925ce9b5eaaaa7a9dd4b
      cd js && yarn && yarn perf  
      (arrow-js) elena@e ~ % cd arrow git checkout -f 50fbfa14aa612d638d54925ce9b5eaaaa7a9dd4b cd js && yarn && yarn perf HEAD is now at 50fbfa14aa ARROW-16693: [JS] Upgrade to TS 4.7 yarn install v1.22.17 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/5] 🔍  Validating package.json... [2/5] 🔍  Resolving packages... success Already up-to-date. ✨  Done in 0.46s. yarn run v1.22.17 $ node --loader ts-node/esm/transpile-only ./perf/index.ts (node:27404) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time (Use `node --trace-warnings ...` to show where the warning was created) ReferenceError: exports is not defined in ES module scope     at file:///Users/elena/arrow/js/perf/index.ts:18:23     at ModuleJob.run (internal/modules/esm/module_job.js:183:25)     at async Loader.import (internal/modules/esm/loader.js:178:24)     at async Object.loadESM (internal/process/esm_loader.js:68:5)     at async handleMainPromise (internal/modules/run_main.js:59:12) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 
       
      

      cc domoritz jonkeane 

      Attachments

        Issue Links

          Activity

            People

              elena@ursacomputing.com Elena Henderson
              elena@ursacomputing.com Elena Henderson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m