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

Did you find this page helpful?