easemob / react-native-chat-sdk

MIT License
2 stars 10 forks source link

Metro is closing while trying to run the code #32

Open priyaAmzur opened 6 months ago

priyaAmzur commented 6 months ago

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

SimulatorOrDevice

iOSVersion

AsteriskZuo commented 6 months ago

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.