This affects Next.js examples where the docs sandbox starts the app with the default Turbopack configuration.
"dev": "next dev --webpack"
npm install && npm run dev
// or
npm install && npx next dev --webpack
It should start example docs sandbox without any runtime errors.
Describe the bug
The interactive sandbox on example pages using Next.js runs:
npm install && npx next devinstead of using the project's
npm run devscript.Additionally, the dev script in these examples currently runs
next devwithout the--webpackflag. Since Next.js 16 enables Turbopack by default, these examples fail on StackBlitz because Turbopack native bindings are not available in the WebContainer environment.This affects Next.js examples where the docs sandbox starts the app with the default Turbopack configuration.
Current affected example pages:
Fix
Your minimal, reproducible example
https://stackblitz.com/github/tanstack/query/tree/main/examples/react/optimistic-updates-ui?embed=1&theme=dark&preset=node&file=src/index.tsx
Steps to reproduce
Expected behavior
It should start example docs sandbox without any runtime errors.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Linux - Chrome
Tanstack Query adapter
No response
TanStack Query version
^5.101.2
TypeScript version
No response
Additional context
No response