T
TanStack2mo ago
other-emerald

RouterProvider error after devinxi

hey! im updating from 1.119.0 to 1.127.3. and getting this error Warning: useRouter must be used inside a <RouterProvider> component! more details after
5 Replies
other-emerald
other-emeraldOP2mo ago
full error:
other-emerald
other-emeraldOP2mo ago
other-emerald
other-emeraldOP2mo ago
my __root.tsx:
other-emerald
other-emeraldOP2mo ago
anyone running into the same thing? deleting my <Outlet>, <TanStackRouterDevtools position="top-right" />, <HeadContent />, and <Scripts /> tag fixed it (but obviously my app doesnt work then)
equal-aqua
equal-aqua2mo ago
check your lockfile, you probably have multiple router versions installed somehow

Did you find this page helpful?