traps · 2 served
Next.js
next · latest 16.3.4 · MIT
React framework with the App Router, server components, and Turbopack as the default bundler since 16.
| symptom and fix |
|---|
major · >=16.0.0 · published · verified 2026-09-08 revalidateTag('posts') stops type-checking; the single-argument form is deprecated in Next.js 16. Pass a cacheLife profile as the second argument, `revalidateTag('posts', 'max')`. If you need the change visible in the same request rather than stale-while-revalidate, call `updateTag('posts')` from a Server Action instead. evidence |
major · >=16.0.0 · published · verified 2026-09-08 A project with any webpack config fails `next build`, because Turbopack is the default bundler in 16. Either migrate the config to the top-level `turbopack` option, or keep webpack for production with `next build --webpack`. A plugin can add a webpack option without you writing one, so check your next.config for what plugins inject before assuming the config is yours. evidence |
Sorted by severity. Your agent sees the subset that matches the version you have installed: traps(library: "nextjs", version: "16.3.4").