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

OOTB install: localhost:3000 returns 404, Cannot GET / #239

Closed
bebbi opened this issue Jul 27, 2016 · 5 comments
Closed

OOTB install: localhost:3000 returns 404, Cannot GET / #239

bebbi opened this issue Jul 27, 2016 · 5 comments

Comments

@bebbi
Copy link
Contributor

bebbi commented Jul 27, 2016

$ npm i -g create-react-app
$ create-react-app my-app
.. Success! ..
$ cd my-app
$ npm start
Starting the dev server ... Compiled successfully! .. running at http://localhost:3000/
Returned document in OSX/Chrome: Cannot GET /
console shows 404 error.

Does anyone have a quick idea for debugging this?
Btw: it's the same after ejecting. Using nvm0.31.3, node 6.3.0, npm 3.10.6

@gaearon
Copy link
Contributor

gaearon commented Jul 27, 2016

This is weird and shouldn’t happen. Unfortunately it looks like some quirk specific to your Node setup because it doesn’t seem like other people are bumping into this.

If I was debugging this, I’d probably eject, put some logs into scripts/start.js and anything it calls (e.g. webpack-dev-server/lib/Server.js), as well as into html-webpack-plugin, and see why the server doesn’t serve index.html.

@bebbi
Copy link
Contributor Author

bebbi commented Jul 27, 2016

I had a detached (node express) server process occupying port 3000 with nothing on the "/" route.
webpack-dev-server appears not to care about that.
When provoking a port conflict with another running server (python -m SimpleHTTPServer), webpack-dev-server even simply takes over. Maybe someone can teach webpack-dev-server some manners :)

@bebbi bebbi closed this as completed Jul 27, 2016
@gaearon
Copy link
Contributor

gaearon commented Jul 27, 2016

Maybe #101 will detect this.

@gaearon
Copy link
Contributor

gaearon commented Jul 27, 2016

Can you try if the same problem is detected in the next alpha? Instructions to upgrade: #190

@bebbi
Copy link
Contributor Author

bebbi commented Jul 28, 2016

works just fine for my test cases, including multiple sequential ports occupied.

@lock lock bot locked and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants