Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo app - can't load project with message : This is taking much longer than it should

I build my react native app in this way :

1.npm install expo-cli --global.

2.expo init my-new-project.

3.cd my-new-project and expo start --lan.

4. install expo on my ios device.

5. open Expo then click the “Scan QR Code” and Scan the QR code in our terminal.

but I get following error :

error

I am connected to the same wifi on both devices and my IP is the same. And I turned off my windows firewall.

Do you know why this happens? I once saw the output on my phone but after that this error occurs every time.

like image 340
Afsanefda Avatar asked Feb 09 '19 09:02

Afsanefda


2 Answers

Your firewall is most likely the problem. It may be blocking your phone's connection to your computer.

On Windows: Settings > Network and Internet > [Ethernet || WiFi] > Network > Network Profile [Private] > Configure Firewall and Security Settings > (Settings is trying to open Windows Security) [Yes] > Private Network > Microsoft Defender Firewall [Off]

Now expo should work through LAN.

Alternatively: On the expo developer tools, switch to tunnel.

like image 25
Leonardo Avatar answered Sep 29 '22 08:09

Leonardo


I had the same problem, entered to Settings, Network, WI-Fi, show available Networks, Properties on your internet connection, and click on Private. Then it worked, I hope it serves to you too.

like image 89
Juan Avatar answered Sep 29 '22 10:09

Juan