nx
nx copied to clipboard
Project with a certain name is not seen by nx
Current Behavior
nx does not see a project defined in our pnpm workspace named "mobile-ui". If we rename it to anything else (e.g. "mobileui" without the dash), nx detects it properly when building its project graph.
Current behavior: "mobile-ui" project is not included in computation of project graph, for example via pnpm exec nx graph --file=graph.json
Platform: Mac ARM (M1)
Expected Behavior
Expected behavior: graph should include mobile-ui
GitHub Repo
https://github.com/yapplabs/nx-missing-project-repro
Steps to Reproduce
Reproduction steps:
- pnpm install
- pnpm exec nx reset
- pnpm exec nx graph --file=graph.json
Expected behavior: graph.json should include mobile-ui and global-ui Actual behavior: graph.json only includes global-ui
Nx Report
➜ nx-missing-project-repro git:(main) nx report
NX Report complete - copy this into the issue template
Node : 20.19.1
OS : darwin-arm64
Native Target : aarch64-macos
pnpm : 10.12.1
nx : 21.2.0
@nx/js : 21.2.0
@nx/jest : 21.2.0
@nx/eslint : 21.2.0
@nx/workspace : 21.2.0
@nx/devkit : 21.2.0
@nx/eslint-plugin : 21.2.0
@nx/plugin : 21.2.0
@nx/rollup : 21.2.0
typescript : 5.7.3
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
@nx/rollup/plugin
---------------------------------------
Cache Usage: 0.00 B / 92.64 GB
Failure Logs
Package Manager Version
No response
Operating System
- [x] macOS
- [ ] Linux
- [ ] Windows
- [ ] Other (Please specify)
Additional Information
No response