T
tRPC

query with no input reports error

query with no input reports error

Ppatrick9/8/2023
i have a simple router with a list procedure that takes no input and just does a .query() it used to work, but now in the client side, when i try to call .useQuery() with no parameters i'm getting this error...
Expected 1-2 arguments, but got 0.ts(2554)
createTRPCReact.d.ts(16, 140): An argument for 'input' was not provided.
(property) useQuery: ProcedureUseQuery
Expected 1-2 arguments, but got 0.ts(2554)
createTRPCReact.d.ts(16, 140): An argument for 'input' was not provided.
(property) useQuery: ProcedureUseQuery
No description
Ppatrick9/8/2023
I just checked and nothing has changed in createTPCReact.tsx in 9 months, so it must be something i am doing wrong. also, important data point, it compiles with tsc and esbuild just fine, and runs just fine, this is a VSCode only error!?

Looking for more? Join the community!

T
tRPC

query with no input reports error

Join Server