[undefined] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment> #11304
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm working on a React+Mobx+Typescript Web Application.
I'm migrating to v6 from v5 using this guide (with react-router-dom-v5-compat):
#8753
Now I'm in step 4: Convert Switch to Routes.
Before started this step - everything was complied and running successfully.
After completing it - I get this error on run time:
[undefined] is not a component. All component children of must be a or <React.Fragment>
with no idea why.
tried to search the web for it, but couldn't find anything helpful.
Can anyone please assist?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions