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