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

Command Undefined When Running Android in Nx Workspace with React Native #30267

Open
1 of 4 tasks
dhanushiya-k opened this issue Mar 5, 2025 · 0 comments
Open
1 of 4 tasks

Comments

@dhanushiya-k
Copy link

Current Behavior

Description:
I followed the official Nx documentation to set up a workspace with React Native, but when I try to run the Android command (nx run :android), I receive an error that says the command is undefined. I am using the exact command mentioned in the official Nx documentation, but it doesn't work.

Expected Behavior

The command should run successfully, and the Android project should build and launch as expected, just like described in the official Nx React Native documentation

GitHub Repo

No response

Steps to Reproduce

Steps to Reproduce:

Create an Nx workspace following the official Nx setup guide.
Install React Native with @nx/react-native.
Follow the official instructions to set up Android (or iOS) in the Nx workspace.
Try to run the Android command using nx run :android.
The command returns an error saying "command undefined."

Nx Report

Error: Command is undefined.

Failure Logs

Package Manager Version

npm version - 11.1.0 , pnpm version - 10.4.1

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant