typedefT
tRPC8mo ago
5 replies
typedef

Upgrading from v10 to v11

What am I doing wrong? I thought transformer was moved? Seem to be some typing issue.
export const trpc = createTRPCNext<AppRouter>({
  config() {
    return {
      queryClient,
      links: [
        httpBatchLink({
          url: `${process.env.NEXT_PUBLIC_BASE_URL}/api/trpc`,
          transformer: superjson,
        }),
      ],
    };
  },
  ssr: false,
});
image.png
image.png
Solution
Solved, had to add this
image.png
Was this page helpful?