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

217
Views
tengo problemas con react-router-dom y creando un objeto de historial del navegador, TypeError: locationProp no está definido

Parece que tengo problemas con la conexión del historial del enrutador de reacción, pero el error no está claro.

TypeError: locationProp no está definido

 272 | locationProp = parsePath(locationProp); 273 | } 274 | > 275 | let { | ^ 276 | pathname = "/", 277 | search = "", 278 | hash = "", App.js looks like this import React from "react"; import { Router, Routes, Route } from "react-router-dom"; import StreamList from "./streams/StreamList"; import StreamCreate from "./streams/StreamCreate"; import StreamEdit from "./streams/StreamEdit"; import StreamDelete from "./streams/StreamDelete"; import StreamShow from "./streams/StreamShow"; import Header from "./Header"; import history from "../history"; const App = () => { return ( <div className="ui container"> <Router history={history}> <Header /> <Routes> <Route path="/" element={<StreamList />} /> <Route path="/streams/new" element={<StreamCreate />} /> <Route path="/streams/edit" element={<StreamEdit />} /> <Route path="/streams/delete" element={<StreamDelete />} /> <Route path="/streams/show" element={<StreamShow />} /> </Routes> </Router> </div> ); }; export default App;

esto es del video 21 de la parte 24: creación de un objeto de historial del navegador en el curso Udemy React and Redux

history.js se ve así

 import { createBrowserHistory } from "history"; export default createBrowserHistory();
about 4 years ago · Juan Pablo Isaza
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!