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

220
Vistas
Router with React Chrome extension

I'm developing a Chrome extension with React but I can't get rid of this warning: No routes matched location "/popup.html", it cause the app simply to not start.

I used this template to create the app and my App.js looks like this:

import { BrowserRouter as Router, Route, Routes } from "react-router-dom"
import PrivateRoute from "./components/PrivateRoute"

function App() {
  return (
    <Router>
      <AuthProvider>
        <Routes>
          <Route exact path="/dashboard" element={<PrivateRoute> <Dashboard /> </PrivateRoute> } />
          <Route path="/signup" component={Signup} />
          <Route path="/login" component={Login} />
          <Route path="/forgot-password" component={ForgotPassword} />
          <Route exact path="/update-profile" element={<PrivateRoute> <UpdateProfile /> </PrivateRoute> } />
        </Routes>
      </AuthProvider>
    </Router>
  )
}

export default App;

Before using routes, having just return (<Signup/>) worked but not everything is broken.

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

So I just found a simple answer if that can help people:

Just replace import { BrowserRouter } with import { HashRouter } and that will work perfectly fine

about 4 years ago · Santiago Gelvez 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