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

[Feature]: Update react-router-config for v6 of react-router #8443

Closed
darkcattz opened this issue Dec 3, 2021 · 2 comments
Closed

[Feature]: Update react-router-config for v6 of react-router #8443

darkcattz opened this issue Dec 3, 2021 · 2 comments
Labels

Comments

@darkcattz
Copy link

What is the new or updated feature that you are suggesting?

Hello,

I have this error with react-router-config (V5) and react-router (v6) :

file : react-router-config/esm/react-router-config.js
Attempted import error: 'Switch' is not exported from 'react-router'.

Is it possible to update react-router-config to react-router v6 ?

Thanks

Why should this feature be included?

React-router update to v6 in react-router-config

@timdorr
Copy link
Member

timdorr commented Dec 3, 2021

We are not keeping react-router-config as a separate package because we now have useRoutes built-in. You should only use it with v5.

@timdorr timdorr closed this as completed Dec 3, 2021
@jainChetan81
Copy link

hi @timdorr , I am stuck on this problem as well, is there any example or migration path for react-router-config to builtinuseRoutes or anything similar?

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

No branches or pull requests

3 participants