Error: Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?

I have created a brand new project with t3-app using next.js and trpc with app router
const update = api.users.update.useMutation({});
I have faced this issue when the component that contains the above code get mounted and the issue pointing on .useMutation()
Solution:
I found the issue I accdently deleted the TRPCReactProvider wrapper from the layout...
Jump to solution
2 Replies
deviana
devianaOP5mo ago
This is my import import { api } from "@/trpc/react";
Solution
deviana
deviana5mo ago
I found the issue I accdently deleted the TRPCReactProvider wrapper from the layout
Want results from more Discord servers?
Add your server