create t3 app with pnpm issue

i just pnpm created a t3 app with the 4 pieces and im getting this error - Error: No QueryClient set, use QueryClientProvider to set one (did nothing yet)
5 Replies
ahmadaccino
ahmadaccino2y ago
I believe that is because you need to instantiate a queryclient. Make sure to start the client and add the provider in your _app.tsx // Create a client const queryClient = new QueryClient() function App() { return ( // Provide the client to your App <QueryClientProvider client={queryClient}> <Todos /> </QueryClientProvider> ) }
cje
cje2y ago
i can't reproduce this on pnpm dlx create-t3-app@latest could you share a repo with a pnpm-lock?
barry
barry2y ago
dont need dlx anymore afaik pnpm create t3-app@latest and yh works fine for me with that
cje
cje2y ago
^ they both do the same thing, so should be unrelated to the issue
ahmadaccino
ahmadaccino2y ago
I dont think it has to do anything with t3, I think he just forgot to add the react-query clientprovider to app root
Want results from more Discord servers?
Add your server