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

508
Views
Typescript 2 types with react-router, cannot find name path, component

Screenshots kind of speak for themselves, first this is my routes file where the problem occur, you can see the unused import and path and component not being found.

enter image description here

Here is my package.json with the types dependencies and the @types in the node_modules folder.

enter image description here

Finally, my configs

enter image description here enter image description here

I cannot get where is the problem here, anyone got something similar?

Note that I've been able to use <Router history={browserHistory} routes={routes} /> and react and redux object in the app without problems.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Your routes file has a .ts extension but should be .tsx if it contains JSX.

over 4 years ago · Santiago Trujillo Report
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!