-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failed with Node 21.3.0, Error: readCachedProjectGraph failed #20544
Comments
I already tried to run |
I can run Local result:
CI:
|
I have the same issue, also hosted on Render. With my last commit ~12 hours ago everything worked as expected.
CI:
|
@benjiminio I noticed on Render CI environment, Local:
CI:
So maybe this is why NX cannot create the file? |
Not sure it has something to do with Render. I get the error locally in Docker as well:
|
I suddenly also have this issue on one of my deloyments (of 3 servies I deploy with nx) UPDATE: if I put the build on the same version as the local install (CI was building on node 21, and local was 20). then it all works again |
Similar solution in my case: defining the exact node version in the Dockerfile.
|
I tried with different versions of node, up to |
So it seem the issue is caused by the Node 21.3.0 release,
The build is working again in CI |
Seem related to this issue; |
Version 21.4 is released, this fixed some of the problems |
pretty sure this is related to #20551 - downgrading to lts/ |
Also had this problem. Upgrading Node to 21.4.0 has indeed helped and also resolved another issue I had when running nx migrate
Now I'm running in this issue #20675
|
The odd Node versions aren't stable and Nx does not guarantee support for them. I would recommend not using any odd versions for production. |
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
I can build my project on my local machine with fresh install,
but when I commit it to my repo and trigger the CI build,
it fails every time with the same error message:
Could not find 'nx' module in this workspace. Error: [readCachedProjectGraph] ERROR: No cached ProjectGraph is available.
Full log:
Expected Behavior
It should build the project successfully
GitHub Repo
No response
Steps to Reproduce
npm ci && node build.mjs
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: