Next.js Discord

Discord Forum

Vercel build fails

Unanswered
Ant posted this in #help-forum
Open in Discord
AntOP
Hi guys, I am using @tanstack/react-query: "^5.4.3", node 18.17.0, react: ^18, next : 14.0.0 and i have vercel build error 😐

error:
⨯ TypeError: React.createContext is not a function
at file:///var/task/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:5:32
at ModuleJob.run (node:internal/modules/esm/module_job:194:25) {
page: '/'
}
⨯ TypeError: React.createContext is not a function
at file:///var/task/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:5:32
at ModuleJob.run (node:internal/modules/esm/module_job:194:25) {
page: '/'
}
TypeError: React.createContext is not a function
at file:///var/task/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:5:32
at ModuleJob.run (node:internal/modules/esm/module_job:194:25) {
page: '/'
}
Error: Runtime exited with error: exit status 1
Runtime.ExitError

i am adding _app.tsx file...

can anybody help me? thanks in advanced

@Satin Angora @Multiflora rose seed chalcid

1 Reply

AntOP