[Docs]: Question about this tutorial: https://reactrouter.com/en/main/start/tutorial #11208
-
Beta Was this translation helpful? Give feedback.
Answered by
brophdawg11
Jan 19, 2024
Replies: 1 comment 2 replies
-
|
I think the issue is where you are configuring the const router = createBrowserRouter([
{
path: "/",
element: <Root />,
errorElement: <ErrorPage />,
},
], {
basename: "/react-router-tutorial",
}); |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
brophdawg11
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I think the issue is where you are configuring the
basename. It looks like it's part of your route definition, but it should be in the second option tocreateBrowserRouter. Does the following work?