Theo's Typesafe CultTTC
Theo's Typesafe Cult2y ago
4 replies
deviana

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
Was this page helpful?