yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.42k stars 1.11k forks source link

[Bug?]: Error "Required package missing from disk" when building with Node 23.0.0 #6570

Open demonicattack opened 5 days ago

demonicattack commented 5 days ago

Self-service

Describe the bug

When building my project using Yarn with Node.js 23.0.0, I encountered the following error related to a missing TypeScript package. The build process works correctly with Node.js 22.9.0. Additionally, I also face a similar error when running yarn dlx @yarnpkg/sdks@latest. However, after clearing the cache and reinstalling dependencies on Node.js 22.9.0, everything works fine.

To reproduce

Image

yarn install

Image

yarn build (using tsup)

Image

yarn dlx @yarnpkg/sdks@latest

Image

Environment

Ubuntu 24.04 Node.js version: 23.0.0 Yarn version: 4.5.1 TypeScript version: 5.6.3 Yarn workspaces

Additional context

No response

clemyan commented 4 days ago

Probably an issue on Node's side. See nodejs/node#55414

For the time being, avoid upgrading to Node 23 and wait for that PR to be released