Closed yumadilovtimur closed 1 year ago
Are you installing nx
globally in CI? In some instances that can cause problems. If so, I'd generally recommend using npx nx
, pnpm nx
etc to call into your targets.
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏
fyi @yumadilovtimur, I fixed this by changing my cacheDirectory
. I was using the same directory as you, .nx/cache
. Switching to any dir other than one in .nx
seems to work for me. Specifically, I am using build/cache
now, but I tested with .test/cache
as well.
CC @AgentEnder relevant discord thread https://discord.com/channels/1143497901675401286/1146559675656065075/1146559675656065075
Thanks for the suggestion @seeplusplus! 🏆
My cacheDirectory
was set to .nx/.cache
and I faced the same bug. Renaming to a non-.nx/*
directory solved it.
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏
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.
Current Behavior
After upgrading from angular/nx v15 to v16, the application build started throwing an error in CI. (half of builds with errors, half successful) Sometimes (sometimes from the third time) restarting the build in TeamCity helps. Prior to the update, all builds were consistently successful. The build steps and TeamCity settings have not changed. Tried to delete node_modules, yarn.lock, as well as cache in folders: .yarn/cache, .nx, .angular. It didn't help. Tell me, what could be the problem? Thank you very much in advance!
node.js v18.12.1
nx.json
package.json
build steps:
build error:
Expected Behavior
The application is being built successfully. There are no errors
GitHub Repo
No response
Steps to Reproduce
described above
Nx Report
Failure Logs
No response
Operating System
Additional Information
No response