Replies: 1 comment
-
|
This is a known issue with the TanStack Start + tRPC scaffold template. The generated code is missing the Quick fixCheck your // app/routes/__root.tsx
import { createRootRoute, Outlet } from "@tanstack/react-router";
import { TRPCProvider } from "~/trpc/react";
export const Route = createRootRoute({
component: RootComponent,
});
function RootComponent() {
return (
<TRPCProvider>
<Outlet />
</TRPCProvider>
);
}If
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I just installed the tanstack app using
npm create @tanstack/start@latestand selected the TRPC supportWhen i got to the http://localhost:3000/demo/trpc-todo it throws the error
PS: This example here https://tanstack.com/start/latest/docs/framework/react/examples/with-trpc?path=examples%2Freact%2Fwith-trpc%2Fsrc%2Fmain.tsx seems to be outdate also=
Beta Was this translation helpful? Give feedback.
All reactions