nx icon indicating copy to clipboard operation
nx copied to clipboard

fix(core): nx.json should not be required to run tasks

Open juristr opened this issue 10 months ago • 2 comments

Current Behavior

You get a " NX Could not find Nx modules in this workspace." error when there's no "nx.json"

Expected Behavior

It should just work. Nx should still be able to run tasks.

Related Issue(s)

Fixes #

juristr avatar Jun 14 '25 12:06 juristr

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Jun 14, 2025 0:37am

vercel[bot] avatar Jun 14 '25 12:06 vercel[bot]

View your CI Pipeline Execution ↗ for commit 01f9a9a11b8931ce9fdfb3ed3715123dce9feed2.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 34m 35s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 19s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 5s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 3s View ↗
nx documentation ✅ Succeeded 1m 46s View ↗

☁️ Nx Cloud last updated this comment at 2025-06-14 13:07:56 UTC

nx-cloud[bot] avatar Jun 14 '25 12:06 nx-cloud[bot]

The implementation works as expected. There was an issue on my own machine (e.g. a lost nx.json higher up in a parent folder) 🤦‍♂️

juristr avatar Jun 18 '25 08:06 juristr

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

github-actions[bot] avatar Jun 24 '25 00:06 github-actions[bot]