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
E
Elven•19d ago
For added context my router:
The issue is fixed. I'm not entirely sure why, after removing node_modules dir and reinstalling everything and restarting vscode types were ok
4.8KMembers
View on DiscordMore Posts
Don't understand cacheHow come my API is still getting called when it's already been called with other inputs?
Ex:
1. api The inferred type of this node exceeds the maximum length the compiler will serialize.I'm facing this issue. The inferred type of this node exceeds the maximum length the compiler will sGetting strange react error in nextjsI am getting a strange Error Message when nextjs tries to compile:
```js
TypeError: react__WEBPACK_Error on NextJs AppRouterAnyone knows why this is showing on my console?TRPC Dynamic Procedure URLI am currently using QStash as a message queue with TRPC. QStash is HTTP-based and in the example beIs it possible to get the procedure name / id in middleware?I want to create a caching middleware that in some routes, stores a cache key that contains the rout