capaj
capaj2w ago

getting type error in the code from https://trpc.io/docs/client/react/server-components

Hey, has something changed since the doc for server-components was written? getting
Property 'createClient' does not exist on type '"The property 'useContext' in your router collides with a built-in method, rename this router or procedure on your backend." | "The property 'useUtils' in your router collides with a built-in method, rename this router or procedure on your backend." | "The property 'Provider' in your router collides with a built-in ...'.
Property 'createClient' does not exist on type '"The property 'useContext' in your router collides with a built-in method, rename this router or procedure on your backend." | "The property 'useUtils' in your router collides with a built-in method, rename this router or procedure on your backend." | "The property 'Provider' in your router collides with a built-in ...'.
when I try to createClient on the result from createTRPCReact<AppRouter>().
No description
3 Replies
capaj
capajOP2w ago
I got "@tanstack/react-query": "^5.68.0", "@trpc/client": "11.0.0-rc.833", "@trpc/react-query": "11.0.0-rc.833", "@trpc/server": "11.0.0-rc.833",
capaj
capajOP2w ago
oh no I had a bad import in my
No description
capaj
capajOP2w ago
sorry, may bad!

Did you find this page helpful?