Skip to content

Conversation

@YevheniiYusenkov
Copy link

Currently, when SWC compilation fails, Nx logs only a generic message:

"SWC compilation failed"

There is no error.message, no stderr and no stdout printed.
In many cases the actual cause of failure is completely hidden, which makes debugging very difficult, especially in CI.

This PR improves the logging by printing:

  • error.message (or the error itself)
  • stderr if available
  • stdout if available

This makes SWC failures visible and debuggable again.

Current Behavior

Only a generic "SWC compilation failed" message is logged. No error message or stdout are shown.

Expected Behavior

Include error.message, stderr, and stdout (when available) so developers can understand and debug failures.

Adds clearer diagnostics when SWC compilation fails:
- logs Error.message
- prints stderr and stdout outputs

Improves debugging for local development and CI.
@YevheniiYusenkov YevheniiYusenkov requested a review from a team as a code owner October 29, 2025 16:49
@netlify
Copy link

netlify bot commented Oct 29, 2025

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 7bf7992

@vercel
Copy link

vercel bot commented Oct 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Oct 29, 2025 4:53pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant