Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Metro-Bundler doesn't automatically open

I'm new to react native and just started with the installations and set up; when I reach to the expo start or npm start] command, in most videos it shows that a page automatically opens on browser localhost:19002 but for me after several times all I get is metro-bundler-error

Would be really helpful if someone can direct me on what I should do.

like image 517
Islam A.kohil Avatar asked Jun 08 '26 06:06

Islam A.kohil


2 Answers

The Expo CLI Web UI( the page which automatically opens on browser localhost:19002) is deprecated and in the new version of expo is no longer available. Just use terminal UI and tap ? in the terminal to see the available options

like image 109
El Hassane Essadrati Avatar answered Jun 10 '26 18:06

El Hassane Essadrati


You will have to install react-native-web@~0.18.10, [email protected], @expo/webpack-config@^18.0.1 by running:

npx expo install react-native-web@~0.18.10 [email protected] @expo/webpack-config@^18.0.1

and then press w to open in your web

like image 24
sreeya chidere Avatar answered Jun 10 '26 19:06

sreeya chidere