-
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
root is required with run-many #3907
Comments
Hi there! All targets in Nx have to belong to a project. There are no project-less targets. We discussed this feature several times, but it was never high enough priority. We will examine it again. |
I think it's ok not to support "project-less" targets. Then maybe improving the error message would help debugging. Something like : "The keys 'projectType' & 'root' are required". |
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
project-less targets will be helpful for global tasks, for example lint(eslint and stylelint), we can config only one lint for all projects in workspace. |
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
The "root" field is required with
run-many
If I don't set the "root" field
nx run-many target=serve --project=examples
fails with "cannot read length of undefined".Expected Behavior
Either root should not be mandatory or provide a clearer error message.
Steps to Reproduce
nx run-many target=serve --project=examples
This issue may not be prioritized if details are not provided to help us reproduce the issue.
Failure Logs
Environment
The text was updated successfully, but these errors were encountered: