facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
117.75k stars 24.16k forks source link

[0.76.0 (nightly)] `react-native` command fails silently #45461

Closed tido64 closed 1 month ago

tido64 commented 1 month ago

Description

On latest nightlies (example: 0.76.0-nightly-20240715-2eb7bcb8d), the react-native command fails silently without a word as to why.

I understand this is part of the effort to decouple @react-native-community/cli from react-native, but the current implementation breaks for all users.

Anyone having written scripts in package.json like below:

{
  "scripts": {
    "start": "react-native start"
  }
}

… or have custom scripts and/or build pipelines that rely on the react-native command, will start seeing failures.

We should keep proxying react-native commands to @react-native-community/cli to avoid breaking current users.

Steps to reproduce

n/a

React Native Version

0.76.0-nightly-20240715-2eb7bcb8d

Affected Platforms

Build - MacOS, Build - Windows, Build - Linux

Output of npx react-native info

n/a

Stacktrace or Logs

n/a

Reproducer

n/a

Screenshots and Videos

No response

github-actions[bot] commented 1 month ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.