Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

702
Views
React, localhost refused to connect

I am trying to create a basic application that I able to serve as a movie database. Im following a tutorial on YouTube (link) (I have reached 5:22 in the video)

Im stuck banging my head against the wall because I cannot get the app to run in a chrome browser. At the current stage all I should see is a blank white screen.

Instead when I run it I see chrome saying that "this site can't be reached" and "local host refused to connect"

I have tried EVERY possible solution I could find on the internet. These are a notable few:

  1. Disabling computer firewall
  2. changing localhost:8080 to localhost:3000

I am running MacOS and the latest version of react and visual studio code. I've attached a few images for your reference.

Visual Studio Code launch.json Chrome Tab

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Make sure your app is running as told in comment. If you have not defined "start" in your package.json file, then try to run node app.js and verify again localhost:3000.

about 4 years ago · Juan Pablo Isaza Report

0

Solution to the compile errors: So I figured out the main problem. I had deleted the files index.css and reportWebVitals from my react app. I did this because the YouTube tutorial had done this as well, I assume it was to make it a bit cleaner. Upon creating a new react app I was able to follow each step of the process but this time I made sure keep the index.css and reportWebVitals files and it worked. Not sure why the app ran in the YouTube tutorial and not for me.

Solution to the localhost not connecting: I followed the suggestions of running it using nom start which got the local host to connect. I was earlier doing it through visual studio code's "start debugging" option.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!