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 is closing while trying to run the code #32

Open
4 of 29 tasks
priyaAmzur opened this issue Feb 26, 2024 · 1 comment
Open
4 of 29 tasks

Metro is closing while trying to run the code #32

priyaAmzur opened this issue Feb 26, 2024 · 1 comment

Comments

@priyaAmzur
Copy link

Description

I tried to run the code using this command npx react-native run-android --port=1234 then while running the code, metro is closing the build is successful after 100% but getting the issue of metro, tried to run the example and examples codes in this https://github.com/AgoraIO-Usecase/AgoraChat-UIKit-rn and getting that issue

Version

^1.3.1-beta.4

Output of npx react-native info

info Fetching system and libraries information...
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
Memory: 485.53 MB / 7.88 GB
Binaries:
Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java: 17.0.9 - C:\Program Files\Common Files\Oracle\Java\javapath\javac.EXE
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

tried to run the command npx react-native run-android --port=1234 and then while running the metro is closing

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

Screenshot (3468)

Platform

  • All
  • Android
  • iOS

SimulatorOrDevice

  • All
  • Simulator
  • Device

iOSVersion

  • All
  • iOS Earlier than 8
  • iOS 8
  • iOS 9
  • iOS 10
  • iOS 11
  • iOS 12
  • iOS 13
  • iOS 14
  • iOS 15
  • iOS 16 or above
  • Android Earlier than API Level 23
  • Android API Level 23
  • Android API Level 24
  • Android API Level 25
  • Android API Level 26
  • Android API Level 27
  • Android API Level 28
  • Android API Level 29
  • Android API Level 30
  • Android API Level 31
  • Android API Level 32
  • Android API Level 33 or above
@AsteriskZuo
Copy link
Collaborator

Sorry, I haven't reproduced the problem you mentioned.
Recommendation: Initialize the project correctly, use the command yarn && yarn run version && yarn run env. The next step is to run the sample project. Use the command yarn run android. If you need to customize the port, you need to use the adb tool. You need to install the android studio tool. Under the windows platform, you need to check whether the corresponding version.ts and env.ts are generated.

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

No branches or pull requests

2 participants