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
When creating a new remote project with a multi-word name using the Nx CLI (as the --name argument), regardless of the notation used (camelCase, underscore, or dot notation), Nx generates a hyphenated name, leading to a validation conflict.
nx g @nx/react:remote --name=myRemote --directory="apps/myRemote" --dynamic=true
NX Generating @nx/react:remote
✔ Which stylesheet format would you like to use? · none
✔ Which E2E test runner would you like to use? · none
✔ Which bundler do you want to use to build the application? · webpack
✔ What should be the project name and where should it be generated? · myRemote @ apps/myRemote
NX Invalid remote name provided: my-remote. The name can only contain letters, digits, underscores, and dollar signs.
Expected Behavior
The Nx CLI should correctly handle multi-word names for remote projects, generating valid names regardless of the notation used.
GitHub Repo
No response
Steps to Reproduce
Install the latest Nx CLI using npm install -g nx
Generate a new workspace with npx create-nx-workspace@latest
Attempt to generate a new 'remote' project with a multi-word name, like so: nx g @nx/react:remote --name=myRemote --directory="apps/myRemote" --dynamic=true
Current Behavior
When creating a new remote project with a multi-word name using the Nx CLI (as the --name argument), regardless of the notation used (camelCase, underscore, or dot notation), Nx generates a hyphenated name, leading to a validation conflict.
Expected Behavior
The Nx CLI should correctly handle multi-word names for remote projects, generating valid names regardless of the notation used.
GitHub Repo
No response
Steps to Reproduce
npm install -g nx
npx create-nx-workspace@latest
nx g @nx/react:remote --name=myRemote --directory="apps/myRemote" --dynamic=true
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: