Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

490
Vistas
Custom React App - Fetch API error when deploying to Heroku

I've built a small app in React (not using CRA).

I've deployed to Heroku and it's uploaded fine, but I'm having one issue in which a static JSON file I created myself isn't fetching (Works fine locally).

I'm getting the below error:

enter image description here

Here is my folder structure:

enter image description here

I've tried creating a public folder outside of src but that didn't help either.

I have a basic Express setup:

enter image description here

Thanks

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Make sure your JSON files are accessible. it sounds like you are trying to fetch a file and returning an HTML/XML response. it usually happens when your file has some error.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda