-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
nx > 17 does not pass through cli npm arguments #26537
Comments
I tried to test this locally, but I was unfortunately not able to replicate this locally. As you can see from below logs, I was able to get the correct project running by using the
It could definitely just be me but here's the steps I did:
|
hi @elevenpassin thanks for trying this out.
I did some further tests because before reporting I tried this in 3 different environments:
in all cases I could not get to run the required project. I realized that you might be using a different terminal app. Windows at home - windows terminal - powershell does not work I also reinstalled everything - made sure global and repo Nx versions match - stopped daemon and nx reset. Can you give another try with windows terminal/powershell? Thanks in advance... |
Current Behavior
npm run start -- --project=my-app
the
--project
arg is not passed throughif
nx.json
has adefaultProject
defined it will be run instead but if not then get the errorNX Both project and target have to be specified
Expected Behavior
all args should pass through - worked with v17
GitHub Repo
https://github.com/gkamperis/nx-incremental-bug
Steps to Reproduce
npm run start -- --project=my-app
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: