Create-react-app: localhost:3000 refused to connect

Created on 7 Aug 2020  路  5Comments  路  Source: facebook/create-react-app

I run a yarn start on my application, but can't connect to localhost

I use
windows 10 64bit,
node v14.7.0
npm v6.14.7
and
yarn v1.22.4

but when I run other applications everything runs smoothly

Untitled

bug report needs triage

Most helpful comment

Seems like the problem comes from your start scripts, the react server didn't start
try something like this instead
"scripts": {
"start": "react-scripts start",
"dev": "(yarn run tailwind && yarn run stubby) & yarn run start"
}

All 5 comments

Hey @ariffadhillah ,
can you show us a screenshot of your terminal ?

Hey @ariffadhillah ,
can you show us a screenshot of your terminal ?

is there a solution so i can run the npm/yarn start on my application and can connect to localhost

Untitled

Seems like the problem comes from your start scripts, the react server didn't start
try something like this instead
"scripts": {
"start": "react-scripts start",
"dev": "(yarn run tailwind && yarn run stubby) & yarn run start"
}

Thank you so much Judicaelandria,
for his help, now I have successfully connected to localhost

glad it helped :)

Was this page helpful?
0 / 5 - 0 ratings