Skip to content
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

Problem with positional arguments in Nx 15.6.3 #15015

Closed
mlc-mlapis opened this issue Feb 15, 2023 · 1 comment · Fixed by #15193
Closed

Problem with positional arguments in Nx 15.6.3 #15015

mlc-mlapis opened this issue Feb 15, 2023 · 1 comment · Fixed by #15193
Assignees
Labels
outdated scope: angular Issues related to Angular support in Nx scope: core core nx functionality type: bug

Comments

@mlc-mlapis
Copy link

mlc-mlapis commented Feb 15, 2023

Current Behavior

If a syntax like nx build --configuration=production project-xxx (nx directly instead of ng) is used, the command is converted to the form of nx run project-xxx:build:production project-xxx and the following error message appears:

 >  NX   Schema does not support positional arguments. Argument 'project-xxx' found
 >  NX   Ran target build for project-xxx (578ms)
         With additional flags:
           project-xxx
    ×    1/1 failed
    √    0/1 succeeded [0 read from cache]

Expected Behavior

It's expected the command would have the same effect as the command ng build --configuration=production project-xxx, which is converted to the form of nx run project-xxx:build:production, and runs correctly.

Steps to Reproduce

  1. Install a simple new Nx 15.6.3 workspace with an Angular application.

Nx Report

Node : 16.14.0
   OS   : win32 x64
   npm  : 8.3.1

   nx : 15.6.3
   @nrwl/angular : 15.6.3
   @nrwl/cypress : 15.6.3
   @nrwl/detox : Not Found
   @nrwl/devkit : 15.6.3
   @nrwl/esbuild : Not Found
   @nrwl/eslint-plugin-nx : 15.6.3
   @nrwl/expo : Not Found
   @nrwl/express : Not Found
   @nrwl/jest : 15.6.3
   @nrwl/js : 15.6.3
   @nrwl/linter : 15.6.3
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : Not Found
   @nrwl/nx-cloud : Not Found
   @nrwl/nx-plugin : Not Found
   @nrwl/react : Not Found
   @nrwl/react-native : Not Found
   @nrwl/rollup : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : Not Found
   @nrwl/web : Not Found
   @nrwl/webpack : 15.6.3
   @nrwl/workspace : 15.6.3
   @nrwl/vite : Not Found
   typescript : 4.9.5
   ---------------------------------------
   Local workspace plugins:
   ---------------------------------------
   Community plugins:
         ngx-spinner: 15.0.1

Failure Logs

No response

Additional Information

Angular 15.1.4
Angular CLI: 15.1.5

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: angular Issues related to Angular support in Nx scope: core core nx functionality type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants