tRPCttRPC
Powered by
typedefT
tRPC•9mo 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,
});
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
Jump to solution
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Upgrading tRPC v10 to v11 in NextJS 15.0.1
AdicssAAdicss / ❓-help
12mo ago
TRPC v10 to v11 - change logs location
Mr.defaultMMr.default / ❓-help
3y ago
TSC errors after upgrading to v11
EvanEEvan / ❓-help
2y ago
v10 to v11 - resolveHTTPRequest replacement resolveRequest doesn't exist
xdascxXxdascx / ❓-help
13mo ago