Elven
Error with v11 when using batching
I'm using the lastest version of v11. When I use the batch link I get an trpc inernal error when batched request are received.
I'm using HonoJS, bun and v11.
Stack trace:
For now i disabled it. Is there a better long term solution?
9 replies
Typescript type error with latest version
I'm initialising a project with trpc v11 and I'm trying to strictly follow the documentation for react-query.
I face a problem: everything works fine at runtime but in vscode I have 2 typescript errors:
1/ My hello procedure get this type error on
useQuery
: Property 'useQuery' does not exist on type 'never'.ts(2339)
on this line const q = trpc.hello.useQuery("thing");
in my component.
2/ In the AppRouter
in the frontend on this line:
Truncated error (full: https://pastebin.com/ZDD5nsy3):
Context:
I'm using react + vite + react query + bun.
package.json of frontend & backend are matching to 11.0.0-rc.340
3 replies