frontend5 min read
Next.js 16 params Is a Promise: Fix params.slug undefined
In Next.js 16, params.slug renders empty and the build still passes. Why the type check misses it, the exact error in your terminal, and the fix.
·Adesh Shukla
Tag
4 posts
In Next.js 16, params.slug renders empty and the build still passes. Why the type check misses it, the exact error in your terminal, and the fix.
Why Next.js 16 throws this error at build time, where the Suspense boundary actually has to go, and the two common fixes that quietly make things worse.
App Router file-based conventions that make Next.js predictable for humans also make it easy for AI agents to navigate. Here is why that is not a coincidence.
Lessons from building a real Next.js 16 app — async searchParams, MDX rendering, generateStaticParams, and the Server Component patterns I reach for.