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

docs(react): fix generate command without --dryRun flag #30198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/shared/tutorials/react-monorepo.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ More info can be found in [the integrate with editors article](/getting-started/

{% /callout %}

Run the following command to generate a new `inventory` application. Note how we append `--dry-run` to first check the output.
Run the following command to generate a new `inventory` application. Note how we append `--dryRun` to first check the output.

```{% command="npx nx g @nx/react:app apps/inventory" path="react-monorepo" %}
NX Generating @nx/react:application
```{% command="npx nx g --dryRun @nx/react:app apps/inventory" path="react-monorepo" %}
NX Generating @nx/react:application

✔ Would you like to add React Router to this application? (y/N) · false
✔ What unit test runner should be used? · vitest
Expand Down Expand Up @@ -324,7 +324,7 @@ CREATE apps/inventory-e2e/eslint.config.mjs
NOTE: The "dryRun" flag means no changes were made.
```

As you can see, it generates a new application in the `apps/inventory/` folder. Let's actually run the generator by removing the `--dry-run` flag.
As you can see, it generates a new application in the `apps/inventory/` folder. Let's actually run the generator by removing the `--dryRun` flag.

```shell
npx nx g @nx/react:app apps/inventory
Expand Down