Current behavior
Attempting to resolve issue #813 by updating Yarn to 4.14.1 causes a different error when running lint under Node.js 24.15.0 LTS:
TypeError: Cannot convert undefined or null to object
typecheck and test however run successfully.
Expected behavior
It should be possible to test Corepack successfully under Node.js Active LTS, including under the latest release Node.js 24.15.0 and with a current version of Yarn v4.
Versions
Corepack 0.34.7
Ubuntu 24.04.4 LTS
Node.js 24.15.0 (Active LTS)
Yarn 4.14.1
Steps to reproduce
Install Node.js 24.15.0 LTS, then execute:
git clone https://github.com/nodejs/corepack
cd corepack
npm uninstall yarn -g # if previously installed
npm install corepack -g
corepack yarn install
corepack yarn build
corepack yarn lint
Logs
$ npm install corepack -g
corepack yarn install
corepack yarn build
corepack yarn lint
changed 1 package in 443ms
➤ YN0000: · Yarn 4.14.1
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 265ms
➤ YN0000: ┌ Link step
➤ YN0092: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0000: └ Completed
➤ YN0000: · Done with warnings in 0s 492ms
dist/lib/corepack.cjs 954.6kb
⚡ Done in 67ms
All shims have been generated.
Oops! Something went wrong! :(
ESLint: 9.39.1
TypeError: Cannot convert undefined or null to object
at loadConfigFile (file:///home/mike/github/NODEJS/corepack/.yarn/__virtual__/eslint-virtual-afb76eaad2/4/.yarn/berry/cache/eslint-npm-9.39.1-b5f4bb34fc-10c0.zip/node_modules/eslint/lib/config/config-loader.js:234:24)
at async ConfigLoader.calculateConfigArray (file:///home/mike/github/NODEJS/corepack/.yarn/__virtual__/eslint-virtual-afb76eaad2/4/.yarn/berry/cache/eslint-npm-9.39.1-b5f4bb34fc-10c0.zip/node_modules/eslint/lib/config/config-loader.js:589:23)
at async #calculateConfigArray (file:///home/mike/github/NODEJS/corepack/.yarn/__virtual__/eslint-virtual-afb76eaad2/4/.yarn/berry/cache/eslint-npm-9.39.1-b5f4bb34fc-10c0.zip/node_modules/eslint/lib/config/config-loader.js:743:23)
at async entryFilter (file:///home/mike/github/NODEJS/corepack/.yarn/__virtual__/eslint-virtual-afb76eaad2/4/.yarn/berry/cache/eslint-npm-9.39.1-b5f4bb34fc-10c0.zip/node_modules/eslint/lib/eslint/eslint-helpers.js:322:5)
at async NodeHfs.<anonymous> (file:///home/mike/.yarn/berry/cache/@humanfs-core-npm-0.19.1-e2e7aaeb6e-10c0.zip/node_modules/@humanfs/core/src/hfs.js:574:24)
at async NodeHfs.walk (file:///home/mike/.yarn/berry/cache/@humanfs-core-npm-0.19.1-e2e7aaeb6e-10c0.zip/node_modules/@humanfs/core/src/hfs.js:614:3)
at async globSearch (file:///home/mike/github/NODEJS/corepack/.yarn/__virtual__/eslint-virtual-afb76eaad2/4/.yarn/berry/cache/eslint-npm-9.39.1-b5f4bb34fc-10c0.zip/node_modules/eslint/lib/eslint/eslint-helpers.js:364:20)
at async Promise.allSettled (index 0)
at async globMultiSearch (file:///home/mike/github/NODEJS/corepack/.yarn/__virtual__/eslint-virtual-afb76eaad2/4/.yarn/berry/cache/eslint-npm-9.39.1-b5f4bb34fc-10c0.zip/node_modules/eslint/lib/eslint/eslint-helpers.js:455:18)
at async Promise.all (index 0)
Other
At this time the corresponding upstream Yarn Berry issue yarnpkg/berry#7106 is unresolved.
Current behavior
Attempting to resolve issue #813 by updating Yarn to 4.14.1 causes a different error when running
lintunder Node.js 24.15.0 LTS:typecheckandtesthowever run successfully.Expected behavior
It should be possible to test Corepack successfully under Node.js Active LTS, including under the latest release Node.js 24.15.0 and with a current version of Yarn v4.
Versions
Corepack
0.34.7Ubuntu
24.04.4LTSNode.js
24.15.0(Active LTS)Yarn
4.14.1Steps to reproduce
Install Node.js 24.15.0 LTS, then execute:
Logs
Other
At this time the corresponding upstream Yarn Berry issue yarnpkg/berry#7106 is unresolved.