Skip to content

pnpm 10.5 seems to believe both neverBuiltDependencies and onlyBuiltDependencies are present. #9178

@cpojer

Description

@cpojer

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

10.5.0.

Which area(s) of pnpm are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue or a replay of the bug

https://github.com/nkzw-tech/athena-crisis/actions/runs/13542445522/job/37846390785

Reproduction steps

  • git clone [email protected]:nkzw-tech/athena-crisis.git
  • Run pnpm install && pnpm dev:setup
  • Run pnpx playwright install --with-deps chromium

See: https://github.com/nkzw-tech/athena-crisis/actions/runs/13542445522/job/37846390785

Note, these are the steps that are running on CI, but maybe if you run them locally it is different. This was not an issue prior to using pnpm 10.5.0.

Describe the Bug

pnpm seems to believe that both neverBuiltDependencies and onlyBuiltDependencies are present, but only neverBuiltDependencies is used in the project.

Expected Behavior

pnpm not to throw.

Which Node.js version are you using?

23.7.0.

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions