Skip to content

Investigate and fix null to object error #2641

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

Closed

Conversation

MaxKless
Copy link
Collaborator

Fixes TypeError in isNxCloudUsed by adding robust null/undefined and type checking for nx.json properties.

The TypeError: Cannot convert undefined or null to object occurred when nxJson.tasksRunnerOptions was explicitly null or a non-object value, leading Object.values() to throw an error. This PR adds defensive checks to gracefully handle malformed nx.json configurations.


Open in WebOpen in CursorOpen Docs

Copy link

nx-cloud bot commented Jul 28, 2025

View your CI Pipeline Execution ↗ for commit 8edb64e

Command Status Duration Result
nx affected --targets=build,test,e2e-ci --confi... ❌ Failed 18m 22s View ↗
nx-cloud record -- ./gradlew :intellij:ktfmtChe... ✅ Succeeded 4s View ↗
nx-cloud record -- ./gradlew projectReportAll ✅ Succeeded 2m 49s View ↗

☁️ Nx Cloud last updated this comment at 2025-07-28 14:24:22 UTC

@MaxKless MaxKless closed this Jul 28, 2025
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.

2 participants