Skip to content

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

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexternal bugThis issue highlights a bug in another project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions