Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
RomanSurface opened this issue Mar 29, 2018 · 16 comments
Labels
moving-to-expo-cli The issue tracker has been moved to expo/expo-cli. Please file bugs in the Expo CLI repository now.

Comments

@RomanSurface
Copy link

RomanSurface commented Mar 29, 2018

I have

  • installed Node 8.11.0 on Windows 8
  • installed npm install -g create-react-native-app
  • created successfully a test project
create-react-native-app AwesomeProject
cd AwesomeProject
npm start

  • installed expo client app on my iphone 5s, iOS 9.2
  • sent the app url using email to my phone

I

  • connect my iphone on the same network of my windows machine (wifi)
  • click on the link contained in the email message
  • accept to open the link in the Expo app
  • the Expo app tries to launch the procjet but gets stuck givin this message

This is taking much longer than it should. You might want to check your interenet connection

  • Expo app crashes
    It seems like the project is too heavy to be loeaded in the app, due to the list of node_modules installed.

How can i solve this problem?
I am stuck in development.

img_8410

@brentvatne
Copy link
Member

you need to be on the same wifi network and that wifi network cannot be a public network (eg: restaurant, cafe, school) that is behind a NAT. if this is the case then you will have to use a simulator

@RomanSurface
Copy link
Author

i am on the same wifi network, and it is not a public one. it is my private house wifi

@brentvatne
Copy link
Member

brentvatne commented Mar 29, 2018

copy the url to your phone and open it in safari or chrome, let me know what you see

@brentvatne brentvatne reopened this Mar 29, 2018
@RomanSurface
Copy link
Author

RomanSurface commented Mar 30, 2018

@brentvatne i tried to open the url on safari (eliminating the prefix exp://) : the browser gets no response back (message : "safari cannot open the page cause the server stopped answering")
Do you think is there any firewall setting on the house router, blocking that port?

thanks a lot in advance

I tried to use the iphone as hotspot, connecting my windows pc to it, but i got the same problem.

edit
looks like it's the firewall installed on the machine, in my case ZoneAlarm.
I have disabled it and now i do not receive that error message.
Still i cannot see my project but this is may due to other problems.
As soon as i will have the enviroment working, i will post here the steps i did to get the result.
Thanks

@brentvatne
Copy link
Member

thanks for the followup @RomanSurface! i'd also recommend updating the version of react-native-scripts in your project -- npm i react-native-scripts@1.13.1 --save -- this fixes a small bug (that may or may not impact you) with loading projects that have spaces in the project path

@ghost
Copy link

ghost commented Sep 24, 2018

I m having the same problem, turned off firewall and done all troubleshotting but still project is not opening in expo app

@manu-dikzit
Copy link

@Azambadar I faced the same problem. Turns out I was creating a "LAN" connection on the desktop expo server. Switching to "Tunnel" solved it for me

@ghost
Copy link

ghost commented Oct 3, 2018

Hi @manu-dikzit , my wifi connection was not supporting expo and expo worked fine with mobile phone hotspot.

@fson fson added the moving-to-expo-cli The issue tracker has been moved to expo/expo-cli. Please file bugs in the Expo CLI repository now. label Oct 3, 2018
@fson fson closed this as completed Oct 3, 2018
@AmanGupta-tech
Copy link

same problem can't able to open

@mollyAC
Copy link

mollyAC commented Jan 9, 2022

I just started using expo-cli so here is what I found out.

Windows:

  1. Use the same wi-fi connection for both laptop and phone
  2. Enable the Node.js JavaScript Runtime in "Control Panel\System and Security\Windows Defender Firewall\Allowed apps"
    image
    By default, Node.js JavaScript Runtime is enabled in private network connection. So you will need to enable it in the public network connection.

Hope it helps!

@SaraLozoZaho
Copy link

Perfect! Thank you

@VictorRockett
Copy link

@mollyAC OMG THANK YOU !!!!

@chris1797
Copy link

@mollyAC Thank you!!!!!

@cukuralii
Copy link

@mollyAC thank you brother !!!

@shadowwinter
Copy link

Thank you! This was exactly what I needed :)

@AjithChitturi
Copy link

Thank You So much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
moving-to-expo-cli The issue tracker has been moved to expo/expo-cli. Please file bugs in the Expo CLI repository now.
Projects
None yet
Development

No branches or pull requests