Next.js · tool · fg-0303

next build fails on Next.js 16 with 'This build is using Turbopack, with a webpack config and no turbopack config'

If you see This build is using Turbopack, with a `webpack` config and no `turbopack` config, the cause and the fix for Next.js are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
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

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun