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

[[v6]] 'Switch' is not exported from 'react-router-dom'. #8226

Closed
xld1393679430 opened this issue Nov 5, 2021 · 2 comments
Closed

[[v6]] 'Switch' is not exported from 'react-router-dom'. #8226

xld1393679430 opened this issue Nov 5, 2021 · 2 comments

Comments

@xld1393679430
Copy link

xld1393679430 commented Nov 5, 2021

I introduced the React V6 version and it looks like the react-router-dom export Switch is missing

image

image

@Grapedge
Copy link

Grapedge commented Nov 5, 2021

You should use Routes instead of Switch: upgrade-all-switch-elements-to-routes

@mjackson mjackson closed this as completed Nov 5, 2021
@mjackson
Copy link
Member

mjackson commented Nov 5, 2021

Thanks for the answer, @Grapedge

brophdawg11 pushed a commit that referenced this issue Mar 27, 2024
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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

3 participants