facebook / metro

🚇 The JavaScript bundler for React Native
https://metrobundler.dev
MIT License
5.25k stars 626 forks source link

"server.runInspectorProxy" warning after update to version "0.73.6" #233 #1255

Closed fkazemi5236 closed 7 months ago

fkazemi5236 commented 7 months ago

I updated a React Native app to this version "react-native": "0.73.6" Everything works properly and there is no problem in running the program. But a warning is displayed in metro and because of this error, it does not allow me to create an app bundle :(

please help me to fix this issue Capture

robhogan commented 7 months ago

This looks like a Metro version mismatch - could you run yarn why metro-config and let us know the output?

fkazemi5236 commented 7 months ago

This looks like a Metro version mismatch - could you run yarn why metro-config and let us know the output?

Yes, Sure

`yarn why metro-config yarn why v1.22.19 [1/4] Why do we have the module "metro-config"...? [2/4] Initialising dependency graph... [3/4] Finding dependency... [4/4] Calculating file sizes... => Found "metro-config@0.80.8" info Has been hoisted to "metro-config" info Reasons this module exists

fkazemi5236 commented 7 months ago

I fix this issue with this solution:

  1. create a blank and new react-native-app with npx react-native@latest init my-project
  2. check package.json file
  3. Adapt part devDependenciesof this file to your project and update the versions