You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running an UI generator that provides tags field throws error Schema does not support positional arguments. if multiple tags are defined.
This only happens if tags are comma separated and space is set after comma. Without space it would work, but than it's not passed as string and only first tag is used.
Question remains if there's a specific format to use in form field.
However, if using the first approach and picking up the generated command, running it manually on console, it works fine. So something seems to pass something in.
Expected Behavior
Multiple, comma separated tags, should be passed to nx generate command as it would be if running it manually.
Steps to Reproduce
Run a UI generator for an app or library that uses -tags argument.
Do you have a minimal repro for me to use?
I tried this on both my mac and windows laptop and it worked the same from the CLI and from nx console generate ui...
and the command looks correct too, doesn't it?
Current Behavior
Running an UI generator that provides tags field throws error
Schema does not support positional arguments.
if multiple tags are defined.This only happens if tags are comma separated and space is set after comma. Without space it would work, but than it's not passed as string and only first tag is used.
Question remains if there's a specific format to use in form field.
However, if using the first approach and picking up the generated command, running it manually on console, it works fine. So something seems to pass something in.
Expected Behavior
Multiple, comma separated tags, should be passed to nx generate command as it would be if running it manually.
Steps to Reproduce
tag1, tag2
Failure Logs / Images / Videos
Command generated:
nx g @nx/nest:application --name=api --frontendProject=ui --directory=apps/api --projectNameAndRootFormat=as-provided --tags="tag1, tag2"
Error thrown if running through UI:
> NX Schema does not support positional arguments. Argument 'tag2' found
Environment
The text was updated successfully, but these errors were encountered: