You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default layout has no path as its a layout route. However this issue doesnt happen to my other project thats on Vite so I am wondering if React router v6.19 above doesnt work with Create react app?
thanks!
Expected Behavior
Based on the the screenshot, React router should find DefaultLayout and start rendering it
Actual Behavior
No path matched / because no path were specified
The text was updated successfully, but these errors were encountered:
Pathless routes don't "match" as leaf routes. If you want to match / you need to provide an index route for the pathless layout route, or add path="/" as you discovered. Right now only the two path'd children would match - so /litmos-group-signup and /education-group-signup.
constroutes=[{element: <Layout/>,children: [{index: true,// match at the path "/"element: <h2>Index</h2>,},{path: "temp",element: <h2>Temp</h2>,},],},];
What version of React Router are you using?
6.22.1
Steps to Reproduce
A route config that looks like
The default layout has no path as its a layout route. However this issue doesnt happen to my other project thats on Vite so I am wondering if React router v6.19 above doesnt work with Create react app?
thanks!
Expected Behavior
Based on the the screenshot, React router should find DefaultLayout and start rendering it
Actual Behavior
No path matched / because no path were specified
The text was updated successfully, but these errors were encountered: