Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i stop expo from running in the web

I recently started react-native, after installing all dependencies i tried starting my project but when it starts i don"t seem to find the QR code scanner for me to scan with my device anywhere, instead it starts in the browser, it says web Starting Webpack on port 19006 in development mode.

  • Expo Webpack █████████████████████████ building (40%) 194/196 modules 2 active node_modules\invariant\browser.js

i 「wds」: Project is running at http://0.0.0.0:19006/ i 「wds」: webpack output is served from / i 「wds」: Content not from webpack is served from C:\Users\user\AppData\Roaming\npm\node_modules\expo-cli\node_modules@expo\webpack-config\web-default i 「wds」: 404s will fallback to /

. I want expo to run on my device not the browser.

like image 367
Lekan Saheed Avatar asked Jan 30 '26 10:01

Lekan Saheed


1 Answers

Try

  1. Deleting all the metro packages from project_root/node_modules.
  2. Run npm install in project_root.
  3. Now run expo start again and it should work.

This seems to help in most cases

like image 59
bene1337_ Avatar answered Feb 01 '26 02:02

bene1337_



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!