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

Not seeing metro bundler start up after executing npx react-native run-ios #28281

Closed
rencire opened this issue Mar 11, 2020 · 6 comments
Closed
Labels
Needs: Triage 🔍 Resolution: Locked This issue was locked by the bot.

Comments

@rencire
Copy link

rencire commented Mar 11, 2020

Description:

Not seeing metro bundler start up automatically after executing npx react-native run-ios.

Seeing the launchPackager.command open in a new Terminal window, but metro bundler does not seem to start correctly:
Screen Shot 2020-03-10 at 5 58 42 PM

Note: Metro bundler starts up fine when manually starting in a new shell via npx react-native build.

React Native version:

System:
    OS: macOS Mojave 10.14.6
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 162.72 MB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node
    npm: 6.13.4 - ~/.nvm/versions/node/v12.16.1/bin/npm
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
  IDEs:
    Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: 0.61.5 => 0.61.5

Steps To Reproduce

Same steps as creating a new react native project, as per the docs:

  1. npx react-native init myproj3
  2. cd myproj3
  3. npx react-native run-ios
  4. Notice that metro bundler does not start up correctly.

Expected Results

Expected metro bundler to start automatically in a new terminal window after running npx react-native run-ios.

Snack, code example, screenshot, or link to a repository:

Output from npx react-native run-ios
Screen Shot 2020-03-10 at 5 59 06 PM

Resulting error in simulator from not having a js bundle:
Screen Shot 2020-03-10 at 5 55 25 PM

@ccfz
Copy link

ccfz commented Mar 11, 2020

Does react-native start open metro?

@rencire
Copy link
Author

rencire commented Mar 11, 2020

Does react-native start open metro?

Yes it does when I run npx react-native start.

@ccfz
Copy link

ccfz commented Mar 11, 2020

I think this might be duplicate with this: #25509

@chrisglein
Copy link

Issue is resolved, moved to the CLI repo: react-native-community/cli#484
That is resolved, but has some more recent comments. This seems to need a fresh investigation and should move to the CLI repo.

@hramos
Copy link
Contributor

hramos commented Mar 24, 2020

@rencire can you open this issue in the CLI repo?

@archfz
Copy link

archfz commented May 2, 2020

Related hotfix for linux in #28807

@facebook facebook locked as resolved and limited conversation to collaborators Oct 1, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Triage 🔍 Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants