-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
Describe the bug
Hi!
In the context of a Next 13 project, I'm able to use react-query in local dev, but production builds fail with the following error:
./node_modules/.pnpm/@[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/@tanstack/react-query/build/lib/reactBatchedUpdates.mjs Attempted import error: 'unstable_batchedUpdates' is not exported from 'react-dom' (imported as 'ReactDOM').
Dependencies:
"dependencies": { "@apollo/client": "3.7.8", "@apollo/server": "4.4.0", "@as-integrations/next": "1.2.0", "@graphql-tools/schema": "9.0.16", "@heroicons/react": "1.0.6", "@tailwindcss/forms": "0.5.3", "@tailwindcss/line-clamp": "0.4.2", "@tanstack/query-core": "4.24.10", "@tanstack/react-query": "4.24.10", "axios": "1.3.3", "clsx": "1.2.1", "date-fns": "2.29.3", "dinero.js": "2.0.0-alpha.8", "graphql": "16.6.0", "graphql-request": "5.1.0", "graphql-tag": "2.12.6", "graphql-tools": "8.3.18", "jotai": "2.0.2", "jotai-tanstack-query": "0.5.0", "mongodb": "5.0.1", "ms": "3.0.0-canary.1", "next": "13.1.7-canary.21", "react": "18.2.0", "react-dom": "18.2.0", "styled-components": "6.0.0-beta.2", "swr": "2.0.3", "use-count-up": "3.0.1" },
Curious whether this is a known issue...
Your minimal, reproducible example
N/A - only build step fails
Steps to reproduce
pnpm run build
Expected behavior
Build completes successfully
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
Mac OS
TanStack Query version
"@tanstack/query-core": "4.24.10", "@tanstack/react-query": "4.24.10",
TypeScript version
No response
Additional context
No response
