-
Notifications
You must be signed in to change notification settings - Fork 2.5k
React library generator doesn't work using --routing flag #30721
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
Closed
1 of 4 tasks
Labels
priority: medium
Medium Priority (not high, not low priority)
scope: react
Issues related to React support for Nx
type: bug
Comments
manuelbosi
added a commit
to manuelbosi/nx
that referenced
this issue
Apr 14, 2025
manuelbosi
added a commit
to manuelbosi/nx
that referenced
this issue
Apr 27, 2025
manuelbosi
added a commit
to manuelbosi/nx
that referenced
this issue
May 1, 2025
ndcunningham
added a commit
that referenced
this issue
May 24, 2025
ndcunningham
added a commit
that referenced
this issue
May 26, 2025
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> When we try to generate a library with react it fails because `name` is required. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> This should work out of the box. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #30721
Hi @ndcunningham, just for the next time, can you explain what's wrong with my PR #30722? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
priority: medium
Medium Priority (not high, not low priority)
scope: react
Issues related to React support for Nx
type: bug
Current Behavior
Generating a new react library doesn't work if routing flag is set to true.
Expected Behavior
React library generator should work using the
--routing=true
flagGitHub Repo
No response
Steps to Reproduce
pnpm dlx create-nx-workspace --pm pnpm
pnpm nx add @nx/react
pnpm nx g @nx/react:library --directory=packages/my-react-lib --name=my-react-lib --routing=true --no-interactive --dry-run
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: