T
TanStack2y ago
generous-apricot

Query devtools giving `Uncaught Error: No QueryClient set, use QueryClientProvider to set one`

It's a vite + pnpm SPA running with a cloudflare worker function written in Hono using wrangler local, but the vite server also gives the same error. versions: "@tanstack/react-query": "^5.13.4", "@tanstack/react-query-devtools": "^5.13.4",
No description
4 Replies
generous-apricot
generous-apricotOP2y ago
No description
generous-apricot
generous-apricotOP2y ago
I have tried uninstalling and installing the packages, but in vain.
rival-black
rival-black2y ago
Make sure you don't have multiple different versions of react-query around. Check your lockfile.
generous-apricot
generous-apricotOP2y ago
I didn't have multiple versions of query but seem to have multiple versions of devtools I removed 5.13.4 and installed 5.13.3 which seemed to be the older one and that worked

Did you find this page helpful?