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

105
Vistas
React Deployement Issue

I am deploying a react application , when i run the serve -s build command , my project loads but as i put it in apache server , i am only able to see the background color and nothing else . There is no error on the console and i can see the API's getting called in the network tab but still no component loads . I dont understand , if there is any issue in my react router . THIS IS HOW I HAVE DONE ROUTING

<Router basename="/KDS">
      <Switch>
        <Route exact path="/" component={Login} />
        {localStorage.getItem("isLoggedIn") ? (
          <>
            <Route exact path="/AllOrders" component={AllOrders} />
            <Route exact path="/Waiting" component={Waiting} />
            <Route exact path="/Preparing" component={Preparing} />
            <Route exact path="/Ready" component={Ready} />
            <Route exact path="/Delivered" component={Delivered} />
            <Route exact path="/Cancelled" component={Cancelled} />
          </>
        ) : null}

        <Redirect to="/" />
      </Switch>
    </Router>
over 4 years ago · Santiago Trujillo
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