tRPCttRPC
Powered by
PinkiePieP
tRPCโ€ข14mo agoโ€ข
14 replies
PinkiePie

trpc doesn't work after migrating to next 15

When i upgraded to Next 15 (pages router), all trpc routes fails with status 500 on production. The result message is
{"error":{"json":{"message":"req.socket.once is not a function","code":-32603,"data":{"code":"INTERNAL_SERVER_ERROR","httpStatus":500}}}}
{"error":{"json":{"message":"req.socket.once is not a function","code":-32603,"data":{"code":"INTERNAL_SERVER_ERROR","httpStatus":500}}}}
. I don't really understand if it's TRPC issue, Next issue or even Netlify issue (i host my website there, but they declare to support Next 15). Does anybody have an idea where the problem could be? I don't call
req.socket.once
req.socket.once
anywhere in my code, so the issue is probably with one of those places
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

tRPC on pages router broken after Next 15.5.x
augieAaugie / โ“-help
6mo ago
tRPC doesn't support redirect
backboneBbackbone / โ“-help
3y ago