T
TanStack5mo ago
adverse-sapphire

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
adverse-sapphire
adverse-sapphireOP5mo ago
full error:
adverse-sapphire
adverse-sapphireOP5mo ago
adverse-sapphire
adverse-sapphireOP5mo ago
my __root.tsx:
adverse-sapphire
adverse-sapphireOP5mo 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)
environmental-rose
environmental-rose5mo ago
check your lockfile, you probably have multiple router versions installed somehow

Did you find this page helpful?