-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
Description
Current Behavior
When we updated pnpm, it recently fixed how they hoist things. This left our CI unable to run with an obsure error copied below.
In short, projects was getting passed as null. This should probably be a TS error, but you get the idea.
Expected Behavior
The resolver should include information about what specifically it was looking for so the user can resolve this.
GitHub Repo
No response
Steps to Reproduce
- Reference a workspace plugin without symlinking it to the top-level directory
- Run an NX command
NOTE: I couldn't figure out how to reproduce this locally. Only in CI :-/
Nx Report
NX Report complete - copy this into the issue template
Node : 20.19.1
OS : darwin-arm64
Native Target : aarch64-macos
pnpm : 10.18.3
nx : 21.6.4
@nx/js : 21.1.2
@nx/jest : 21.6.4
@nx/eslint : 21.6.4
@nx/workspace : 21.6.4
@nx/cypress : 21.6.4
@nx/devkit : 21.6.4
@nx/eslint-plugin : 21.6.4
@nx/module-federation : 21.6.4
@nx/plugin : 21.6.4
@nx/react : 21.6.4
@nx/rollup : 21.6.4
@nx/storybook : 21.6.4
@nx/vite : 21.6.4
@nx/web : 21.6.4
typescript : 5.5.4
---------------------------------------
Nx key licensed packages
Licensed to Block Inc..
@nx/powerpack-s3-cache : 4.0.0
---------------------------------------
Registered Plugins:
@nx/vite/plugin
@squareup/service-dashboard-web-runtime/nx-plugin
@nx/storybook/plugin
@squareup/nx-lint-plugin
@squareup/nx-stats-plugin
@squareup/service-i18n/nx-plugin
@squareup/infra-e2e-playwright/nx-plugin
---------------------------------------
Community plugins:
@squareup/infra-e2e-playwright : 0.0.0
@squareup/service-i18n : 0.101.1
---------------------------------------
Local workspace plugins:
@squareup/infra-e2e-playwright
@squareup/service-i18n
@squareup/migrate
---------------------------------------
Cache Usage: 537.25 MB / 92.64 GB
---------------------------------------
Failure Logs
> [builder 16/18] RUN pnpm nx build dashboard-web --verbose:
0.928 at getWorkspacePackagesMetadata (/builder/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@swc+types@0._4304e07c47bcc3c2e12e728a3953fbb5/node_modules/nx/src/plugins/js/utils/packages.js:10:34)
0.928 at findNxProjectForImportPath (/builder/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@swc+types@0._4304e07c47bcc3c2e12e728a3953fbb5/node_modules/nx/src/project-graph/plugins/resolve-plugin.js:109:57)
0.928 at lookupLocalPlugin (/builder/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@swc+types@0._4304e07c47bcc3c2e12e728a3953fbb5/node_modules/nx/src/project-graph/plugins/resolve-plugin.js:79:27)
0.928 at resolveLocalNxPlugin (/builder/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@swc+types@0._4304e07c47bcc3c2e12e728a3953fbb5/node_modules/nx/src/project-graph/plugins/resolve-plugin.js:42:12)
0.928 at getPluginPathAndName (/builder/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@swc+types@0._4304e07c47bcc3c2e12e728a3953fbb5/node_modules/nx/src/project-graph/plugins/resolve-plugin.js:56:28)
0.928 at resolveNxPlugin (/builder/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@swc+types@0._4304e07c47bcc3c2e12e728a3953fbb5/node_modules/nx/src/project-graph/plugins/resolve-plugin.js:25:62)
0.928 at loadRemoteNxPlugin (/builder/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@swc+types@0._4304e07c47bcc3c2e12e728a3953fbb5/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:34:105)
0.928 at loadNxPluginInIsolation (/builder/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@swc+types@0._4304e07c47bcc3c2e12e728a3953fbb5/node_modules/nx/src/project-graph/plugins/isolation/index.js:7:49)
0.928 at /builder/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@swc+types@0._4304e07c47bcc3c2e12e728a3953fbb5/node_modules/nx/src/project-graph/plugins/get-plugins.js:119:58
0.928
Package Manager Version
No response
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
No response