Upgrading tRPC v10 to v11 in NextJS 15.0.1
I'm want to upgrade my tRPC to v11, I already follow the instructions on the docs https://trpc.io/docs/migrate-from-v10-to-v11#installation--upgrading using
pnpm
.
Installation is running smoothly, but when i run pnpm build
i get
I thought i miss pnpm prisma generate
but as you can see in my package.json
script, i already include it (i run it manually too) but an errors still exists. I try to hover the type on my vscode, it tell me correct type like the old (tRPC v10).
How do i fix that? Thank youMigrate from v10 to v11 | tRPC
This is a current work in progress representing version 11.

4 Replies
Is your Typescript verion greater then 5.7.3?
no

tRPC requires TypeScript >=5.7.2It says it at the top of their docs. But I don't know if this will actually fix it. The upgrade you should do anyways
Ohh I don't know why upgrade command I copied from the docs doesn't automatically update typescript too
I'll try it, thanks
Solved!