From 4fa95c21c7ae6a1dd671c895f63c7cbb97c06cca Mon Sep 17 00:00:00 2001 From: Allen Ngorora Date: Mon, 9 Jun 2025 16:17:24 +0200 Subject: [PATCH] docs(module-federation): update creating-a-remote.md (#30462) Without explicitly specifying the --name option nx adds the full workspace name ie @workspace/remote-app of which that fails the name validation ## Current Behavior ## Expected Behavior ## Related Issue(s) Fixes # Co-authored-by: Colum Ferry --- docs/shared/recipes/module-federation/creating-a-remote.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/shared/recipes/module-federation/creating-a-remote.md b/docs/shared/recipes/module-federation/creating-a-remote.md index 47ca64c81e..b28c00f38d 100644 --- a/docs/shared/recipes/module-federation/creating-a-remote.md +++ b/docs/shared/recipes/module-federation/creating-a-remote.md @@ -17,12 +17,12 @@ Angular application(s). ## Generating a Remote -To generate a remote application in your workspace, run the following command: +To generate a remote application in your workspace, cd into the right folder and run the following command: {% tabs %} {% tab label="React" %} -```{% command="nx g @nx/react:remote apps/react/myremote" %} +```{% command="nx g @nx/react:remote --name=myremote" %} NX Generating @nx/react:remote CREATE apps/react/myremote/src/app/app.spec.tsx