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",

4 Replies
generous-apricotOP•2y ago

generous-apricotOP•2y ago
I have tried uninstalling and installing the packages, but in vain.
rival-black•2y ago
Make sure you don't have multiple different versions of react-query around. Check your lockfile.
generous-apricotOP•2y 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