nx
nx copied to clipboard
[readCachedProjectGraph] ERROR: No cached ProjectGraph is available.
Current Behavior
Hi, unfortunately all of my nx run commands in the package@test-nx/nuxt do not work.
In the error logs stands that I should open an issue on GitHub when this happens.
Expected Behavior
All of the nx run commands work as expected.
GitHub Repo
https://github.com/samuelreichor/nuxt-nx-reproduction
Steps to Reproduce
- Clone Repo and Install dependencies
- Run
pnpx nx run @test-nx/nuxt:${your-command}
Nx Report
Node : 22.14.0
OS : darwin-arm64
Native Target : aarch64-macos
pnpm : 10.11.1
nx (global) : 21.1.2
nx : 21.1.2
@nx/js : 21.1.2
@nx/eslint : 21.1.2
@nx/eslint-plugin : 21.1.2
@nx/nuxt : 21.1.2
@nx/vite : 21.1.2
@nx/vue : 21.1.2
@nx/web : 21.1.2
typescript : 5.7.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/nuxt/plugin
@nx/eslint/plugin
@nx/vite/plugin
---------------------------------------
Cache Usage: 54.09 KB / 92.64 GB
Failure Logs
> nx run @test-nx/nuxt:build
Error: [readCachedProjectGraph] ERROR: No cached ProjectGraph is available.
If you are leveraging \`readCachedProjectGraph()\` directly then you will need to refactor your usage to first ensure that
the ProjectGraph is created by calling \`await createProjectGraphAsync()\` somewhere before attempting to read the data.
If you encounter this error as part of running standard \`nx\` commands then please open an issue on https://github.com/nrwl/nx
at readCachedProjectGraph (/Users/samuel/Documents/b-privat-projekte/b-testspace/test-nx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_2db11073ee710c85f57051c80b4e4355/node_modules/nx/src/project-graph/project-graph.js:44:15)
at run (/Users/samuel/Documents/b-privat-projekte/b-testspace/test-nx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_2db11073ee710c85f57051c80b4e4355/node_modules/nx/src/command-line/run/run.js:173:69)
at process.<anonymous> (/Users/samuel/Documents/b-privat-projekte/b-testspace/test-nx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_2db11073ee710c85f57051c80b4e4355/node_modules/nx/bin/run-executor.js:59:48)
at process.emit (node:events:518:28)
at process.emit (/Users/samuel/Documents/b-privat-projekte/b-testspace/test-nx/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_2db11073ee710c85f57051c80b4e4355/node_modules/nx/src/native/index.js:20:23)
at emit (node:internal/child_process:949:14)
at process.processTicksAndRejections (node:internal/process/task_queues:91:21)
Package Manager Version
No response
Operating System
- [x] macOS
- [ ] Linux
- [ ] Windows
- [ ] Other (Please specify)
Additional Information
No response