We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using pnpm v9 with the new lockfileVersion: '9.0', the logic for creating the Nx project graph does not find any external dependencies.
lockfileVersion: '9.0'
The Nx project graph should include external dependencies even when using pnpm lockfile v9.
No response
To reproduce, run the following code:
import { createProjectGraphAsync } from '@nx/devkit'; import { writeFile } from 'fs/promises'; await writeFile('project-graph.json', JSON.stringify(await createProjectGraphAsync(), null, 2));
Open project-graph.json and observe that "dependencies" lists no external dependencies, i.e. where "target": "npm:...".
project-graph.json
"dependencies"
"target": "npm:..."
Node : 20.5.0 OS : win32-x64 pnpm : 9.0.2 nx (global) : 18.3.1 nx : 18.3.1 @nx/js : 18.3.1 @nx/jest : 18.3.1 @nx/eslint : 18.3.1 @nx/workspace : 18.3.1 @nx/devkit : 18.3.1 @nx/eslint-plugin : 18.3.1 @nx/express : 18.3.1 @nx/node : 18.3.1 @nx/playwright : 18.3.1 @nx/plugin : 18.3.1 @nx/react : 18.3.1 @nx/rollup : 18.3.1 @nx/storybook : 18.3.1 @nrwl/tao : 18.3.1 @nx/vite : 18.3.1 @nx/web : 18.3.1 typescript : 5.4.5
pnpm : 9.0.2
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
Nx doesn't support pnpm 9 yet. Support for that is currently being tracked in #22850. I'm going to close this as a duplicate.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
No branches or pull requests
Current Behavior
When using pnpm v9 with the new
lockfileVersion: '9.0'
, the logic for creating the Nx project graph does not find any external dependencies.Expected Behavior
The Nx project graph should include external dependencies even when using pnpm lockfile v9.
GitHub Repo
No response
Steps to Reproduce
To reproduce, run the following code:
Open
project-graph.json
and observe that"dependencies"
lists no external dependencies, i.e. where"target": "npm:..."
.Nx Report
Failure Logs
No response
Package Manager Version
pnpm : 9.0.2
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: