Skip to content

fix(core): do not throw when node_modules/.modules.yaml is missing#35666

Open
SAY-5 wants to merge 1 commit into
nrwl:masterfrom
SAY-5:fix/pnpm-modules-yaml-missing
Open

fix(core): do not throw when node_modules/.modules.yaml is missing#35666
SAY-5 wants to merge 1 commit into
nrwl:masterfrom
SAY-5:fix/pnpm-modules-yaml-missing

Conversation

@SAY-5
Copy link
Copy Markdown
Contributor

@SAY-5 SAY-5 commented May 12, 2026

Current Behavior

When a workspace has pnpm-workspace.yaml but node_modules was populated by a different package manager (e.g. npm ci in CI), loadPnpmHoistedDepsDefinition throws Could not find ".modules.yaml" at ..., which crashes project graph creation with an opaque stack trace.

Expected Behavior

Hoisted dependency definitions are an optional optimization, so the lockfile parser falls back to an empty map and the rest of the graph resolves.

Related Issue(s)

Fixes #35635

@SAY-5 SAY-5 requested a review from a team as a code owner May 12, 2026 22:47
@SAY-5 SAY-5 requested a review from FrozenPandaz May 12, 2026 22:47
@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 97dee9d

@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

👷 Deploy request for nx-dev pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 97dee9d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pnpm parser crashes with unhelpful error when .modules.yaml is missing (npm ci used instead of pnpm install)

1 participant