After upgrading to 11.0.0-next-beta.300, every request throws zod error

I didn't do anything but upgrading the trpc, and the error throws:
{"issues":[{"code":"invalid_type","expected":"object","received":"undefined","path":[],"message":"Required"}],"name":"ZodError"}
{"issues":[{"code":"invalid_type","expected":"object","received":"undefined","path":[],"message":"Required"}],"name":"ZodError"}
Rollbacking to 11.0.0-next-beta.178 solves.
No description
AK
Alex / KATT šŸ±ā€¢52d ago
hmm could you check with .299?
S
Songkeysā€¢52d ago
it's the same do i need to do binary divisions to find the problematic version lol .297 still has problem .260 still .222 good .240 good
AK
Alex / KATT šŸ±ā€¢52d ago
i just tried upgrading to .300 myself on a massive project and it worked fine with an extensive e2e suite it might be this? https://trpc.io/docs/migrate-from-v10-to-v11#transformers-are-moved-to-links-breaking
S
Songkeysā€¢52d ago
i found the problem but i don't know how to fix the version with this problem make my api url like this:
http://localhost:3000/api/trpc/nodes.many?batch=1&input=%7B%220%22%3A%7B%22limit%22%3A20%7D%7D
http://localhost:3000/api/trpc/nodes.many?batch=1&input=%7B%220%22%3A%7B%22limit%22%3A20%7D%7D
while the correct one is:
http://localhost:3000/api/trpc/nodes.many?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22limit%22%3A20%7D%7D%7D
http://localhost:3000/api/trpc/nodes.many?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22limit%22%3A20%7D%7D%7D
yes it looks like superjson's problem https://github.com/RSS3-Network/Explorer/blob/5567322395d862623bc9baaff2a95a80c2af8e01/src/lib/trpc/provider.tsx#L90 I think I have it configured correctly because there is no typescript error
S
Songkeysā€¢52d ago
correct one vs. problematic one
No description
S
Songkeysā€¢52d ago
.251 bad so it's b/w .240 ~ .251 lemme try .248 .248 good okay it starts from .249
AK
Alex / KATT šŸ±ā€¢52d ago
probably to do with the transformers moving but you should have typescript errors to guide you what to do
S
Songkeysā€¢52d ago
are you able to locate the commit so that we know what's introduced
AK
Alex / KATT šŸ±ā€¢52d ago
it's a bit of a pain b/c it's auto-released on the branch without a git tag etc
S
Songkeysā€¢52d ago
omg it has type error
No description
S
Songkeysā€¢52d ago
sorry i think the IDE just too lazy to check while i keep updating the deps
AK
Alex / KATT šŸ±ā€¢52d ago
cool, yeah this was the one that triggered .249 so it makes sense https://github.com/trpc/trpc/pull/5414
GitHub
chore(breaking): mv transformer from createTRPCClient() to links ...
Closes # šŸŽÆ Changes What Breaking change. This moves transformers: from createTRPCClient() to links This will enable us to add support for tupleson without affecting createTRPCClient - it'll ju...
AK
Alex / KATT šŸ±ā€¢52d ago
gtg
S
Songkeysā€¢52d ago
it actually has a really good type error hint
No description
S
Songkeysā€¢52d ago
thank you so much let me try fix it it works! thank you Alex! ā¤ļø
More Posts
Setting up tRPC for next.js with edge AND serverless functionstldr: I am trying to build an app that uses both edge AND serverless functions by creating separate Hello i am using trpc open api but there is an issue regarding using z.optional() however in the libHello i am using trpc open api but there is an issue regarding using z.optional() however in the libCreateCaller with React-queryHey guys. Is it possible to combine createCaller approach with React-query? I figured out that reactBeginner: form field error handling ?hey guys, I have a question regarding error handling with trpc. How could I specify a form field iZod.enum makes my tRPC explodeI'm having an issue with what appears to be circular dependencies. My problem is that I'm not sure wReact type errors because of backendHello, I'm using tRPC in React and it's working fine generally. However, WebPack always finds somethValue attached to all queriesIs it possible to add a value the all queries so its preset within every procedure call on the clienInvalidating query cache irrespective of query paramsHey is it possible to invalidate a query cache without providing parameters? I have a query for exaSentry integrationHello. I'm using trpc + fastify approach. I need a proper error loggin so I added fastify sentry, whIn my NEXTJS app can read value next-auth session in localhost ,but not when deployed to VercelI have several procedures in my TRPC router (https://github.com/Teodorant1/nighthawk_repair/blob/masWebSocket Authentication: Cookie missingHi community šŸ‘‹ I'm currently trying to integrate the wsLink, and I've noticed that cookies are noClient request headers with createTRPCProxyClientSimple proxy client, following the documentation ```ts import { createTRPCProxyClient, httpBatchLinkGet auth token from context when defining httpBatchLinkIm setting up an ApiProvider for react query and I want to get the authorization token for the AuthoInfinite query get direction infoHello everyone, I'm implementing a bidirectional infinite query and i would need to access the direSubscription for a specific userHow can I create a TRPC subscription that takes a userId? When updates occur elsewhere in my app, IProcedure specific custom headersI'm using recaptcha to protect some of the procedures, and I'm used to sending challenge tokens as hUnable to use caller, in frontend bcz i dont have access to req and res objectsi was trying to use trpc callers, for ssr the queries, but i was not able to create one since i haveReduce `isPending` time for prefetched Queries?I'm looking for ideas on how to reduce the `isPending` time for prefetched `getStaticProps` queries.Beginner Client ProblemsNode 21, npm 10.2.4, tRPC 10, from a create-t3-app run yesterday. I've got a zod validator create bHow to deal with breaking backend version releases during active session?What is the best practice to deal with errors that occur if the backend changes but the frontend bun