Replies: 1 comment 1 reply
-
Can you provide a codesandbox that reproduces your error? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i have been battling this for hours now. i am getting this error during build
Error: No QueryClient set, use QueryClientProvider to set one
at useQueryClient (file:///vercel/path0/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:14:11)
at useBaseQuery (file:///vercel/path0/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js:23:18)
at useQuery (file:///vercel/path0/node_modules/@tanstack/react-query/build/modern/useQuery.js:7:10)
at k (/vercel/path0/.next/server/chunks/6054.js:1:5746)
at Wc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44)
at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253)
at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
at Xc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:409)
at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:210)
at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
Meanwhile my application is wrapped with the Queryclient provider. here is my codebar that wraps the items
Note: I am only getting the error when i try to build, i am using the Nextjs app directory
Beta Was this translation helpful? Give feedback.
All reactions