Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
demonicattack opened this issue Oct 21, 2024 · 1 comment
Open
1 task done
Labels
bug Something isn't working external bug This issue highlights a bug in another project

Comments

@demonicattack
Copy link

demonicattack commented Oct 21, 2024

Self-service

  • I'd be willing to implement a fix

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

  • I am using a monorepo structure with multiple workspaces.

  • The issue does not occur when using Node.js 22.9.0.

  • The build command I am using is: yarn workspaces foreach -Apt run build and yarn dlx @yarnpkg/sdks@latest

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

@demonicattack demonicattack added the bug Something isn't working label Oct 21, 2024
@clemyan
Copy link
Member

clemyan commented Oct 22, 2024

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

@clemyan clemyan added the external bug This issue highlights a bug in another project label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external bug This issue highlights a bug in another project
Projects
None yet
Development

No branches or pull requests

2 participants