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

Metro Bundler is not opening automatically in both android & ios after upgrading to React native 0.73.1 #42173

Closed
prateekuttreja2020 opened this issue Jan 8, 2024 · 15 comments

Comments

@prateekuttreja2020
Copy link

Description

Metro Bundler is not opening automatically in both android & ios after upgrading from 0.72.3 to 0.73.1

we need to run manually with "npm start" command

Steps to reproduce

  1. Install the application
  2. Notice the crash

React Native Version

0.73.1

Affected Platforms

Runtime - Android, Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 13.4.1
  CPU: (8) arm64 Apple M1
  Memory: 40.95 MB / 16.00 GB
  Shell:
    version: 3.2.57
    path: /bin/bash
Binaries:
  Node:
    version: 20.10.0
    path: ~/.nvm/versions/node/v20.10.0/bin/node
  Yarn: Not Found
  npm:
    version: 10.2.3
    path: ~/.nvm/versions/node/v20.10.0/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.14.3
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 22.4
      - iOS 16.4
      - macOS 13.3
      - tvOS 16.4
      - watchOS 9.4
  Android SDK: Not Found
IDEs:
  Android Studio: 2021.3 AI-213.7172.25.2113.9014738
  Xcode:
    version: 14.3/14E222b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.9
    path: /usr/local/opt/openjdk@17/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.1
    wanted: 0.73.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

No Bundle URL Present

Reproducer

https://github.com/prateekuttreja2020/sample

Screenshots and Videos

Simulator Screenshot - iPhone 14 Pro - 2024-01-05 at 17 48 52

@cortinico
Copy link
Contributor

Duplicates react-native-community/cli#2155

This will be fixed in 0.73.2 which will be out in the near future

Also you already reported this same issue 3 days ago:
#42152

Please refrain from cloning more issues.

@Shahzaib114
Copy link

Duplicates react-native-community/cli#2155

This will be fixed in 0.73.2 which will be out in the near future

Also you already reported this same issue 3 days ago: #42152

Please refrain from cloning more issues.

0.73.2 version has the same issue too!

@Shahzaib114
Copy link

For now, you can downgrade your version of react native to 0.72.9. most probably, metro working on this version

Description

Metro Bundler is not opening automatically in both android & ios after upgrading from 0.72.3 to 0.73.1

we need to run manually with "npm start" command

Steps to reproduce

1. Install the application

2. Notice the crash

React Native Version

0.73.1

Affected Platforms

Runtime - Android, Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 13.4.1
  CPU: (8) arm64 Apple M1
  Memory: 40.95 MB / 16.00 GB
  Shell:
    version: 3.2.57
    path: /bin/bash
Binaries:
  Node:
    version: 20.10.0
    path: ~/.nvm/versions/node/v20.10.0/bin/node
  Yarn: Not Found
  npm:
    version: 10.2.3
    path: ~/.nvm/versions/node/v20.10.0/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.14.3
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 22.4
      - iOS 16.4
      - macOS 13.3
      - tvOS 16.4
      - watchOS 9.4
  Android SDK: Not Found
IDEs:
  Android Studio: 2021.3 AI-213.7172.25.2113.9014738
  Xcode:
    version: 14.3/14E222b
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.9
    path: /usr/local/opt/openjdk@17/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.1
    wanted: 0.73.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

No Bundle URL Present

Reproducer

https://github.com/prateekuttreja2020/sample

Screenshots and Videos

Simulator Screenshot - iPhone 14 Pro - 2024-01-05 at 17 48 52

For now, you can downgrade your version of react native to 0.72.9. most probably, metro working on this version

@phamhieu1412
Copy link

same issue, i use both 0.73.2 or 0.73.1
what is your solution??

@cortinico
Copy link
Contributor

same issue, i use both 0.73.2 or 0.73.1

This has been fixed in 0.73.3

@phamhieu1412
Copy link

same issue, i use both 0.73.2 or 0.73.1

This has been fixed in 0.73.3

what? i see new version is 0.73.2, are you sure ?

@jcarioti
Copy link

same issue, i use both 0.73.2 or 0.73.1

This has been fixed in 0.73.3

Any idea for a deployment date for 73.3?

@timothyerwin
Copy link

Same problem 0.73.2

@mihailapuste
Copy link

mihailapuste commented Jan 30, 2024

same issue, i use both 0.73.2 or 0.73.1

This has been fixed in 0.73.3

Any idea for a deployment date for 73.3?

@jcarioti Im dealing with the same issue, but it seems to persist in 73.3

Edit

Turns out it was intended: Metro will no longer be started when running builds via Xcode (dc6845739e by @huntie)

@usmanabid94
Copy link

I am also facing the same issue metro won't start automatically had to run the npm start command to run it on 0.72.4

@a-kova
Copy link

a-kova commented Feb 1, 2024

I'm having the same issue on freshly installed 73.3. However, this error only appears when I start an app from XCode. If I run it from CLI it works.

@mihailapuste
Copy link

mihailapuste commented Feb 1, 2024

I'm having the same issue on freshly installed 73.3. However, this error only appears when I start an app from XCode. If I run it from CLI it works.

@a-kova
This is intended: Metro will no longer be started when running builds via Xcode (dc6845739e by @huntie)

@a-kova
Copy link

a-kova commented Feb 1, 2024

oh, got it, thanks!

@usmanabid94
Copy link

It is working now i deleted the node modules and then installed them now everything is working fine now.

sosunny referenced this issue Feb 22, 2024
…#38242)

Summary:
Pull Request resolved: #38242

See proposal: react-native-community/discussions-and-proposals#681

**Removed script files**

I searched GitHub (and specifically `react-native-windows/macos`) to confirm these files are not referenced:

- `scripts/launchPackager.bat`
- `scripts/launchPackager.command`
- `scripts/.packager.env`

Interestingly, React Native CLI refers to a `.packager.env` at a different location (`node_modules/.bin/`), and includes modified copies of `launchPackager.command/bat`. This PR removes duplication with these.

Changelog: [iOS][Breaking] Metro will no longer be started when running builds via Xcode

Reviewed By: cortinico

Differential Revision: D47297469

fbshipit-source-id: 06c3602d58b21ed693c3daa763d99947a70bfc5a
@gkasireddy202
Copy link

I built my project in react-native:0.73.7 and did not show metro in iOS and Android release mode.
Metro bundler showing in debug mode only. Any thoughts?

Screenshot 2024-05-17 at 1 12 50 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants