tRPCttRPC
Powered by
AdicssA
tRPC•12mo ago•
5 replies
Adicss

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
pnpm
.

Installation is running smoothly, but when i run
pnpm build
pnpm build
i get

./app/forum/[publicId]/page.tsx:147:48
Type error: Parameter 'comment' implicitly has an 'any' type.

  145 |             loadingFallback={<CommentLoaderState />}
  146 |           >
> 147 |             {postResponse?.data?.comments.map((comment) => (
      |                                                ^
  148 |               <Comment
  149 |                 setResponse={setResponse}
  150 |                 {...comment}
 ELIFECYCLE  Command failed with exit code 1.
./app/forum/[publicId]/page.tsx:147:48
Type error: Parameter 'comment' implicitly has an 'any' type.

  145 |             loadingFallback={<CommentLoaderState />}
  146 |           >
> 147 |             {postResponse?.data?.comments.map((comment) => (
      |                                                ^
  148 |               <Comment
  149 |                 setResponse={setResponse}
  150 |                 {...comment}
 ELIFECYCLE  Command failed with exit code 1.


I thought i miss
pnpm prisma generate
pnpm prisma generate
but as you can see in my
package.json
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 you
Screenshot_89.png
Migrate from v10 to v11 | tRPC
This is a current work in progress representing version 11.
Migrate from v10 to v11 | tRPC
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Upgrading from v10 to v11
typedefTtypedef / ❓-help
9mo ago
TRPC v10 to v11 - change logs location
Mr.defaultMMr.default / ❓-help
3y ago
"client[procedureType] is not a function" after upgrading NextJS to version 14.1.2+ ( tRPC v10)
Answer OverflowAAnswer Overflow / ❓-help
2y ago
Server Error: client[procedureType] is not a function [ tRPC v10.45.2 OR v11 ] [ NextJS v14.1.X ]
BillyBobBBillyBob / ❓-help
2y ago