Skip to content

npx react-native run-macos does not start metroΒ #2208

@coolsoftwaretyler

Description

@coolsoftwaretyler

Environment

react-native -v: 14.0.0
npm ls react-native-macos:react-native-macos@0.75.6
node -v: 22.8.0
npm -v: 10.8.2
yarn --version: 1.22.22
xcodebuild -version: Xcode 15.4, Build version 15F31d

Steps to reproduce the bug

Follow the React Native macOS setup from the docs (for the most part, the current docs are actually a little out of date, but this will be the steps for an up-to-date RN project)

  1. npx @react-native-community/cli init macapp
  2. cd macapp
  3. npx react-native-macos-init
  4. npx react-native run-macos

Expected Behavior

I expected the app to build and run the starter project.

Actual Behavior

The app will build, but it doesn't automatically start Metro:

Screenshot 2024-09-29 at 8 13 44β€―PM

Not a big deal, I can just run:

yarn start

Then tap "reload"

Everything works great from there. I also did not have this issue when following the instructions for RN 0.71:

npx react-native@latest init <projectName> --version 0.71.0

Reproducible Demo

https://github.com/coolsoftwaretyler/rnms-issue-repro

Additional context

Happy to submit a PR if this is a quick fix and y'all know how to fix it but don't have the time to code it up.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions