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

nx.json not respecting default generator options #11004

Closed
drekembe opened this issue Jul 4, 2022 · 2 comments
Closed

nx.json not respecting default generator options #11004

drekembe opened this issue Jul 4, 2022 · 2 comments

Comments

@drekembe
Copy link

drekembe commented Jul 4, 2022

Current Behavior

When settings default generator options in nx.json, they are not taken into account when I run a generator.

Expected Behavior

I'd expect them to use the options from the generator section in nx.json. For example, in the reproduction repo I linked, I'd expect that if I run nx g @nrwl/react:component, that it automatically pascal cases the files and directory and uses scss as the css choice. Instead, I get prompted for the css choice and the components are created in dash-case.

Steps to Reproduce

Here's a reproduction repo: https://github.com/drekembe/nx-bug-example

Environment

Node : 12.22.1
OS : linux x64
yarn : 1.22.5

nx : 14.4.1
@nrwl/angular : Not Found
@nrwl/cypress : 14.4.1
@nrwl/detox : Not Found
@nrwl/devkit : 14.4.1
@nrwl/eslint-plugin-nx : 14.4.1
@nrwl/express : Not Found
@nrwl/jest : 14.4.1
@nrwl/js : 14.4.1
@nrwl/linter : 14.4.1
@nrwl/nest : Not Found
@nrwl/next : 14.4.1
@nrwl/node : Not Found
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : Not Found
@nrwl/react : 14.4.1
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : 14.4.1
@nrwl/web : 14.4.1
@nrwl/workspace : 14.4.1
typescript : 4.7.4

Community plugins:

@tamazlykar
Copy link
Contributor

I also ran into a similar problem today. Made a fix, hope it will be accepted soon.

@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 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants