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
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>
)
}
i can't reproduce this on
pnpm dlx create-t3-app@latest
could you share a repo with a pnpm-lock?dont need dlx anymore afaik
pnpm create t3-app@latest
and yh works fine for me with that^ they both do the same thing, so should be unrelated to the issue
I dont think it has to do anything with t3, I think he just forgot to add the react-query clientprovider to app root