Failed to compile

if I remove const make = api.post.makeCard; it work, but I need it. I'm new to trpc.
No description
No description
12 Replies
deforestor
deforestor9mo ago
You need the .useQuery or .useMutation
deforestor
deforestor9mo ago
Like this lol
No description
gave_one
gave_oneOP9mo ago
I'm not getting the options
gave_one
gave_oneOP9mo ago
No description
No description
gave_one
gave_oneOP9mo ago
@ed
deforestor
deforestor9mo ago
I haven't made a new repo with T3 in a long time, so I could be wrong, but your import of the api doesn't look correct to me
deforestor
deforestor9mo ago
No description
deforestor
deforestor9mo ago
Usually it's in the utils folder, so I'm just wondering if you're importing a different thing?
gave_one
gave_oneOP9mo ago
there is no utils @deforestor thx i got it
deforestor
deforestor9mo ago
What was it after all
gave_one
gave_oneOP9mo ago
Sorry for the late response had my finals it was an import error @ed
deforestor
deforestor9mo ago
gotcha
Want results from more Discord servers?
Add your server