- Symptom
- This build is using Turbopack, with a `webpack` config and no `turbopack` config.The build fails even though next.config has no webpack key, because a plugin such as next-pwa or an SVG loader adds one
- Cause
- Next.js 16 builds with Turbopack by default and refuses to silently ignore a webpack function, since that config would not apply.
- Fix
- Port the webpack rules to the turbopack key, or keep webpack for builds with the --webpack flag until the plugin supports Turbopack.
- Apply
// package.json "scripts": { "build": "next build --webpack" }- Affected
- Next.js 16.0 and later, any config or plugin that sets webpack
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders