webpack / react-starter

[OUTDATED] Starter template for React with webpack. Doesn't focus on simplicity! NOT FOR BEGINNERS!
2.21k stars 320 forks source link

Failed to load resource: net::ERR_CONNECTION_RESET #67

Open Frikki opened 9 years ago

Frikki commented 9 years ago

When running npm run dev-server and subsequently npm run start-dev on the Vagrant installation created by the Vagrantfile, accessing http://localhost:8080 on the host machine results in a Failed to load resource: net::ERR_CONNECTION_RESET with an empty http://localhost:2992/_assets/main.js.

However, running npm run build and npm run start seems to work flawlessly.

Is it wrong of me to think that the development should work, too?

withinboredom commented 9 years ago

Researching this issue myself, and found a lead here... I haven't been able to figure out how to bind to 0.0.0.0 instead of localhost though...

withinboredom commented 9 years ago

I'm pretty confident this is the issue, I added a host entry using the vagrant box's ip and didn't get a response but was able to get a response from inside the machine.

zackify commented 9 years ago

happening for me too... annoying.

sokra commented 9 years ago

Send a PR when you find a solution. I don't use Vagrant, so I cannot fix it.

cshenoy commented 9 years ago

I just followed the advice in this answer to get it working: http://stackoverflow.com/a/29812368/518002

Just change 127.0.0.1 localhost to 0.0.0.0 localhost in the VMs /etc/hosts

oliwerhelsen commented 9 years ago

Gr8 work man! Thanks!