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
I see that in the route helper function definition that it expects a second string argument, by adding that it fixes the issue but it'll render the child routes under it as nested layouts.
this could be just a documentation issue but copying a lot of examples from the dev branch routing guide crashes the app https://reactrouter.com/dev/guides/start/routing
The text was updated successfully, but these errors were encountered:
redasalmi
changed the title
[BUG] routes.ts is invalid because of missing route helper second file string argument
[BUG] routes.ts is invalid because of missing route helper second string argument
Oct 4, 2024
What version of React Router are you using?
v7
Steps to Reproduce
Expected Behavior
the dev server should start and it should render the routes defined in the
routes.ts
fileActual Behavior
I see that in the
route
helper function definition that it expects a second string argument, by adding that it fixes the issue but it'll render the child routes under it as nested layouts.this could be just a documentation issue but copying a lot of examples from the
dev
branch routing guide crashes the app https://reactrouter.com/dev/guides/start/routingThe text was updated successfully, but these errors were encountered: