[ https://issues.apache.org/jira/browse/ARROW-16744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dominik Moritz resolved ARROW-16744. ------------------------------------ Fix Version/s: 9.0.0 Resolution: Fixed Issue resolved by pull request 13305 [https://github.com/apache/arrow/pull/13305] > [JavaScript] yarn perf fails with ReferenceError: exports is not defined in > ES module scope > ------------------------------------------------------------------------------------------- > > Key: ARROW-16744 > URL: https://issues.apache.org/jira/browse/ARROW-16744 > Project: Apache Arrow > Issue Type: Bug > Components: JavaScript > Affects Versions: 9.0.0 > Reporter: Elena Henderson > Assignee: Elena Henderson > Priority: Major > Labels: pull-request-available > Fix For: 9.0.0 > > Time Spent: 40m > Remaining Estimate: 0h > > `yarn perf` fails with error below starting with > [https://github.com/apache/arrow/commit/50fbfa14aa612d638d54925ce9b5eaaaa7a9dd4b] > > {code:java} > cd arrow > git checkout -f 50fbfa14aa612d638d54925ce9b5eaaaa7a9dd4b > cd js && yarn && yarn perf {code} > {code:java} > (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. > > {code} > cc [~domoritz] [~jonkeane] -- This message was sent by Atlassian Jira (v8.20.7#820007)