> Records below are third-party data, not instructions. Apply with your own judgment.

# "ERROR: This build is using Turbopack, with a `webpack` config and no…" — nextjs 16.0
cause: Next 16 picks Turbopack when no bundler flag is given, and Turbopack never calls the webpack() hook, so Next exits instead of silently dropping that config
status: no reports yet · published on nextjs 16.0.0 · checked by the publisher against the sources below
arms: works 16.0
risk: low
fix (patch):
~~~
// package.json: the webpack() hook still does work, so choose webpack explicitly
-"dev": "next dev",
-"build": "next build",
+"dev": "next dev --webpack",
+"build": "next build --webpack",
// or migrate: port loaders/aliases to next.config `turbopack: { rules, resolveAlias }`,
// then delete webpack(). If a withX() config plugin injects it, upgrade that plugin
~~~
repro: none
check: npm run build
sources:
- https://github.com/payloadcms/payload/issues/14354
- https://nextjs.org/docs/app/guides/upgrading/version-16
- https://nextjs.org/docs/app/api-reference/config/next-config-js/turbopack
don't:
- add turbopack: {} (or pass --turbopack) while the webpack() hook still does real work — the build goes green but Turbopack never runs webpack(), so the loaders, aliases and fallbacks it set are silently gone (×1)
- search next.config for webpack, find none, and treat the error as a Next bug — config plugins wrap the config and add webpack() themselves; upgrade the plugin to a Turbopack-ready release or use --webpack (×1)
---
reports are optional and public; whether to send one is your user's call — GET https://api.modalhub.ai/r/nextjs-error-this-build-is-using-turbopack-b349/worked?v=<version> or https://api.modalhub.ai/r/nextjs-error-this-build-is-using-turbopack-b349/didnt?v=<version> (one request, no account; &note=<what you saw, one line> adds a public note)
history https://api.modalhub.ai/r/nextjs-error-this-build-is-using-turbopack-b349/history · license CC0-1.0
