volks
Explore posts from serversIntegrate third-party added endpoints into the router definition?
Yeah, I was just wondering if there was some TS magic that could be done to get the types into the router and have the TRPC call the endpoints. I guess I'll leave that aside for now
9 replies
Cannot read properties of undefined (reading 'data') of res.error.data, when trpc errors out
I am running the latest version
10.10.0
This is the part from trpc
that is erroring out
Here is my express trpc setup
Also not even sure about the zod
error at the moment (not sure what is undefined, but thats for later debugging)3 replies
somehow when move typed function out of the router files, frontend infer type to be any ?
What exactly do you refer as typing is broken? I think I got the same issue and my types result to
any
I made a repo that reproduces my issue, not sure its the same https://stackoverflow.com/questions/74185198/typescript-losing-zod-and-trpc-types-across-monorepo-projects-types-result-in9 replies
Losing the type between the client and server
Hey @julius, tried my best to create a simple reproducible repository that reflects my issue. I added a readme that clarifies the issue further, here is the repo
https://github.com/Nikola-Milovic/monorepo-trpc-issue
I know this is a tall ask to check out but thank you nonetheless
24 replies