0

I was building a simple 2-3 pages next.js. It's working fine on the dev mode next dev but continuously erroring in build.

I already tried to use @tanstack/react-query as per SO #65590195

The project is available on Stackblitz, if anyone can take a look to suggest a fix.

https://stackblitz.com/edit/sb1-qmet1r

next build

Error -

Error: No QueryClient set, use QueryClientProvider to set one

> Export encountered errors on following paths:
        /GridView
        /TableView

error screenshot

Github link - https://github.com/Agenty/scrapingsandbox

2
  • import issue may be import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; Commented Nov 17, 2024 at 3:55
  • Doesn't work, same error Commented Nov 17, 2024 at 4:12

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.