TypeError: Cannot read properties of undefined (reading 'split')
at handleProjectGraphError (/app/node_modules/nx/src/project-graph/project-graph.js:158:37)
at Object.generateGraph (/app/node_modules/nx/src/command-line/graph/graph.js:179:57)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.handler (/app/node_modules/nx/src/command-line/graph/command-object.js:21:30)
error Command failed with exit code 1.
Package Manager Version
No response
Operating System
[ ] macOS
[ ] Linux
[ ] Windows
[ ] Other (Please specify)
Additional Information
If you run RUN rm -rf /tmp/* after the first nx command, everything works.
Current Behavior
An error occurs during graph construction if this command is called immediately after any other nx command
Expected Behavior
There shouldn't be any errors
GitHub Repo
https://github.com/uginroot/nx-graph-problem
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
If you run RUN rm -rf /tmp/* after the first nx command, everything works.