Skip to content

Conversation

@alejorrojas
Copy link

Summary

This PR fixes the misleading documentation in getting-started.md that incorrectly stated Metro bundler would open automatically when running npx react-native run-macos.

As confirmed in issue #2208, Metro bundler must be started separately before running the app and this is expected behavior by design. Users following the current documentation were encountering the error "No script URL provided. Make sure the packager is running or you have embedded a JS bundle in your application bundle" because they expected Metro to start automatically.

Changes

  • Updated the Quick Start section to include Metro bundler startup as the first step
  • Removed the incorrect statement: "A Metro bundler window will also open to serve your JavaScript code"
  • Clarified that Metro must be running in a separate terminal before the app can connect to it

Fixes #2208

Update getting-started.md to correctly reflect that Metro bundler must be started manually before running the app. This fixes the misleading documentation that stated Metro would open automatically.

- Add Metro bundler startup as first step in Quick Start section
- Remove incorrect statement about automatic Metro window
- Clarify that Metro must be running for the app to load JavaScript code

Fixes microsoft#2208
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npx react-native run-macos does not start metro

1 participant