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

Project graph contains no external dependencies when using pnpm lockfile v9 #22874

Closed
1 of 4 tasks
ms-tng opened this issue Apr 18, 2024 · 4 comments
Closed
1 of 4 tasks

Comments

@ms-tng
Copy link
Contributor

ms-tng commented Apr 18, 2024

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:

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:...".

Nx Report

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

Failure Logs

No response

Package Manager Version

pnpm   : 9.0.2

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@marviobezerra
Copy link

+1

1 similar comment
@gperdomor
Copy link
Contributor

+1

@AgentEnder
Copy link
Member

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.

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants