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

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

Open
coolsoftwaretyler opened this issue Sep 30, 2024 · 0 comments
Open

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

coolsoftwaretyler opened this issue Sep 30, 2024 · 0 comments
Labels
bug Something isn't working Needs: Triage 🔍

Comments

@coolsoftwaretyler
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

1 participant