patrick
patrick15mo ago

query with no input reports error

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
1 Reply
patrick
patrickOP15mo ago
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!?