Closed kylecannon closed 2 years ago
I am experiencing the same problem right now. I have a test
target that needs all dependencies built before running.
"test": [
{
"target": "build",
"projects": "dependencies"
}
]
However, running nx test ui -u
is forwarding the -ui
argument down to the build target, which throws. Any advises how to solve?
I am using yarn workspaces for this project.
Node : 16.13.2
OS : darwin arm64
yarn : 1.22.15
nx : 14.1.9
@nrwl/angular : Not Found
@nrwl/cypress : Not Found
@nrwl/detox : Not Found
@nrwl/devkit : 14.1.9
@nrwl/eslint-plugin-nx : Not Found
@nrwl/express : Not Found
@nrwl/jest : 14.1.9
@nrwl/js : 14.1.9
@nrwl/linter : 14.1.9
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : 14.0.5
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : Not Found
@nrwl/web : Not Found
@nrwl/workspace : 14.1.9
typescript : 4.7.2
---------------------------------------
Community plugins:
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
When running a command such as
yarn nx build my-app --prod --no-progress --deploy-url=/dist/5.14.0-0/ --output-path=/my-path/
with buildable angular dependencies it will cause target builds to fail with messages such as:or
With this current issue, I believe it's impossible to use 13.3.0 to build production builds with custom deployment arguments.
Expected Behavior
Target dependencies should not receive invalid arguments.
Steps to Reproduce
This issue may not be prioritized if details are not provided to help us reproduce the issue.
Failure Logs
Environment