Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

it was not found in 'react-router-dom'

enter image description here
React Routing Problem. I Install react-router-dom but it don’t work how can i fix

enter image description here
This tutorial will be reading page. but my pc don’t lick this

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The code you are using is react-router-dom@5 code (i.e. the Redirect, Switch, etc) but the error indicates you have installed the latest major version, react-router-dom@6.

Either revert back to v5 with the following CLI commands:

npm uninstall --save react-router-dom
npm install --save react-router-dom@5

Or keep RRDv6 installed and follow the v5 migration guide to update/replace the components and hooks that were replaced in RRDv6 from v5.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading