Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Switch (React-router-Dom) #51

Open
gladosn07 opened this issue Feb 15, 2022 · 2 comments
Open

Update Switch (React-router-Dom) #51

gladosn07 opened this issue Feb 15, 2022 · 2 comments

Comments

@gladosn07
Copy link

React router dom has been updated, replace switch as Routes

@rjmead23
Copy link

I am having this same issue as I have react-router-dom version 6.2.2 installed.. Are you able to paste your version of App.js to show the changes you had to make from Switch to make this work. I tried just changing Switch to Routes, but that wasn't enough to make this work.

@rjmead23
Copy link

Ended up changing the package.json file to "react-router-dom": "^5.2.3" and running npm install again instead of using version 6. This resolved my issue. I am now still using switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants