typedef
typedef3mo ago

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,
});
export const trpc = createTRPCNext<AppRouter>({
config() {
return {
queryClient,
links: [
httpBatchLink({
url: `${process.env.NEXT_PUBLIC_BASE_URL}/api/trpc`,
transformer: superjson,
}),
],
};
},
ssr: false,
});
No description
No description
Solution:
Solved, had to add this
No description
Jump to solution
3 Replies
Solution
typedef
typedef3mo ago
Solved, had to add this
No description
Nick
Nick3mo ago
Nick
Nick3mo ago
This implies you've got mixed tRPC versions perhaps?

Did you find this page helpful?