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

88
Views
Sistema de pago React/Stripe [Error de tipo: no se pueden leer las propiedades de undefined (leyendo 'nombre de la ruta')]

Estaba siguiendo este tutorial para configurar un sistema de pago usando React y Stripe. https://blog.logrocket.com/react-stripe-pago-sistema-tutorial/

una vez que intenté probar una compilación de la muestra, recibí el error [TypeError: Cannot read properties of undefined (reading 'pathname')].

Aplicación.js

 import React, { useState } from 'react' import { Router, Route, Switch } from 'react-router-dom' import { createBrowserHistory } from 'history' import Products from './Products' import Checkout from './Checkout' import { products } from '../products' const history = createBrowserHistory() const App = () => { const [selectedProduct, setSelectedProduct] = useState(null) return ( <Router history={history}> <Switch> <Route exact path="/" render={() => ( <Products products={products} selectProduct={setSelectedProduct} history={history} /> )} /> <Route path="/checkout" render={() => ( <Checkout selectedProduct={selectedProduct} history={history} /> )} /> </Switch> </Router> ) } export default App;
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!