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
deforestor7mo ago
You need the .useQuery or .useMutation
deforestor
deforestor7mo ago
Like this lol
No description
gave_one
gave_one7mo ago
I'm not getting the options
gave_one
gave_one7mo ago
No description
No description
gave_one
gave_one7mo ago
@ed
deforestor
deforestor7mo 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
deforestor7mo ago
No description
deforestor
deforestor7mo ago
Usually it's in the utils folder, so I'm just wondering if you're importing a different thing?
gave_one
gave_one7mo ago
there is no utils @deforestor thx i got it
deforestor
deforestor7mo ago
What was it after all
gave_one
gave_one7mo ago
Sorry for the late response had my finals it was an import error @ed
deforestor
deforestor7mo ago
gotcha
Want results from more Discord servers?
Add your server