-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Fresh react app will not serve #3927
Comments
Does running |
echo $HOST produces nothing. |
Fixed! That prompted me to check my /etc/hosts, which it turns out was empty. Added 127.0.0.1 -> localhost and the issue is fixed. |
cc @Timer any ideas what might’ve happened here? |
@gaearon I have no reason to believe this was caused by create-react-app. I've been doing other development too. |
Hmm, given the empty It's hard to say what happened without trying, but I don't want to toy with my system:
related:
|
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs. |
Is this a bug report?
Yes
Did you try recovering your dependencies?
This is a fresh project. I didn't even run yarn or npm. I just ran "create-react-app client"
yarn version: 1.3.2
Which terms did you search for in User Guide?
None because this is the most basic problem possible.
Environment
node -v
:npm -v
:yarn --version
(if you use Yarn):npm ls react-scripts
(if you haven’t ejected):node 8.7.0
npm 5.6.0
yarn 1.3.2
react-scripts 1.1.0
Mac OS 10.13.2
Firefox 57.0.4
Steps to Reproduce
Expected Behavior
Displays a page that says something like "Welcome to React!"
Actual Behavior
First it says something is running on port 3000, when nothing is actually running on port 3000 (I have checked with lsof and netstat).
Then if I say to run on a different port, the browser window opens but nothing is served to it.
There are no errors in the console or browser.
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: