Steps to replicate:
- Create a new project with
npm create convex@latest and select TanStack Start and WorkOS
- Run
npm install and npm run dev
- Open http://localhost:3000 in your browser
You'll see this warning in both your shell and the browser console on every pageload:
Warning: useRouter must be used inside a <RouterProvider> component!
In the browser, the warning is a stack trace, which shows that the warning is being emitted from AuthKitProvider. The AuthKitProvider is defined alongside the router, but no RouterProvider is being used. AFAICT this doesn't impact functionality, it just creates noise.
Related: TanStack/router#2978
Steps to replicate:
npm create convex@latestand select TanStack Start and WorkOSnpm installandnpm run devYou'll see this warning in both your shell and the browser console on every pageload:
In the browser, the warning is a stack trace, which shows that the warning is being emitted from
AuthKitProvider. TheAuthKitProvideris defined alongside therouter, but noRouterProvideris being used. AFAICT this doesn't impact functionality, it just creates noise.Related: TanStack/router#2978