-
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
Can't determine real reason behind fail of nx release publish
due to inaccurate error handling
#22210
Comments
Same problem
|
Also experiencing this
|
For me updating of nx to the latest version helped, so I don't have errors during publish but still I guess it would be helpful to show users the real reason of failure if there are any |
Digging a bit further, in my case the error was caused by one of our packages having a This adds the following lines to the command output, causing JSON parsing to fail:
Aside from surfacing this error, what's the recommended way to use the |
Looks like this change in npm@10.5.0 is the root cause of my issue. Adding |
I have the same issue. whenver npm fails, I get
|
Hi Folks, sorry for the delay in acknowledging this one, it was actually addressed a while ao by #23850, please update to the latest Nx and you shouldn't see the same behaviour. Please open a fresh issue with minimal steps to reproduce if you encounter any further issues. Many thanks! |
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
Currently on Gitlab CI we try are tryng to run
nx release publish
but it fails with errorCannot read properties of undefined (reading 'summary')
on this line https://github.com/nrwl/nx/blob/master/packages/js/src/executors/release-publish/release-publish.impl.ts#L240. This log hides the true cause of the error. It happens because this line https://github.com/nrwl/nx/blob/master/packages/js/src/executors/release-publish/release-publish.impl.ts#L237C7-L237C69 actually an empty object then it tries to geterror.summary
from it and failsExpected Behavior
If there is no
stdoutData.error
I would expect to see original error:GitHub Repo
No response
Steps to Reproduce
Unfortunately I am not sure why this code goes to this point and how to provide steps to reproduce. I hope if error handling would be improved I can get back to this thread with more information
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: