-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: No QueryClient set, use QueryClientProvider to set one in ReactQueryDevTools with vite setup #3505
Comments
same here |
thanks for reporting. things work fine when downgrading to downgraded, working sandbox here from our side: the devtools are bundled separately, but they import |
@TkDodo thanks for your reply! Indeed, I hadn't thought about downgrading vite to a lower version, I was only playing around with react & react-query versions 😋. As for the duplicates in vite and dev-tools, yes I noticed that too, it was weird for me to see the |
can we open an issue in |
I saw this in the |
@TkDodo since this is already a known problem, feel free to close this issue or mark it as a duplicate |
Describe the bug
After running `yarn dev', react query throws the following errors:
Your minimal, reproducible example
https://codesandbox.io/s/adoring-shirley-wy0dpd?file=/package.json
https://github.com/akharkhonov/vite-react-query
Steps to reproduce
yarn
yarn dev
Expected behavior
As a user, I expected normal behaviour but I'm seeing errors
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
react-query version
3.34.19
TypeScript version
4.6.3
Additional context
No response
The text was updated successfully, but these errors were encountered: