Stack
Next.js errors
These are App Router failures, not every bug that can appear in a Next.js repo. A hook in a Server Component. cookies(), headers(), or params used as a plain value when it is a Promise. A page that opts into dynamic rendering when you wanted a static build. A redirect thrown inside try/catch. useSearchParams without a Suspense boundary. The middleware file Next.js 16 wants you to replace with a proxy. next/image with the default loader under output: 'export', and a remote src whose hostname is not in next.config. process.env.NEXT_PUBLIC_ is undefined when the name, the prefix, or the restart is wrong. A secret that was given the NEXT_PUBLIC_ prefix on purpose is a different page, on the error index, because the value is public rather than missing.
Server versus client is not a separate article anymore. useState only works in a Client Component is the page, and it includes when to put "use client" on a small file instead of the layout. This hub does not list every React render crash or every Vercel setting. Hydration mismatch is here because it is the server HTML against the client render. If the message is a Supabase or Stripe string, use that hub. React render crashes that are not the Next.js hook error are on the React hub.
On this page
- useState only works in a Client Component
- Hydration failed because the server rendered HTML didn't match the client.
- params is a Promise and must be unwrapped
- cookies() should be awaited before using its value
- Dynamic server usage: Route couldn't be rendered statically because it used `cookies`
- Error: NEXT_REDIRECT
- useSearchParams() should be wrapped in a suspense boundary
- The "middleware" file convention is deprecated. Please use "proxy" instead.
- Module not found: Can't resolve 'fs'
- Invalid src prop on `next/image`, hostname is not configured under images in your `next.config.js`
- Image Optimization using the default loader is not compatible with { output: 'export' }
- process.env.NEXT_PUBLIC_ is undefined
- Failed to find Server Action
- You are attempting to export "metadata" from a component marked with "use client"
- Functions cannot be passed directly to Client Components
- Only plain objects, and a few built-ins, can be passed to Client Components
- Body exceeded 1 MB limit
Every other fix is on the error index. Paste the first line of the message there.