Error while creating a mutation in NextJS
I am having the following error:
Here is my code:
If I go to
http://localhost:3000/api/trpc/checkout.stripe
it throws that error, any ideas?5 Replies
Where are you attaching checkoutRouter?
In the root file, where all my routes go
I am using the T3 stack
here is the
root.ts
file
Oh I see it, you're calling a query for a mutation procedure
What do you mean?
publicProcedure.mutation
No "query"-procedure on path "checkout.stripe"
It has to be one or the other