Error index
Next.js errors: exact messages and their fixes
This page lists the 4 Next.js error messages this site has a fix page for: the exact text, the cause in one line, and a link to the fix.
Use this from your agent
- Claude Code: 4 read-only tools; cannot see your repo.
claude mcp add --transport http viberaven https://viberaven.dev/mcp - Codex: same server, in ~/.codex/config.toml.
[mcp_servers.viberaven] url = "https://viberaven.dev/mcp" - In your repo: writes Vercel + Supabase check rules for your agent (what it writes).
npx -y viberaven init
4 errors
Next.js error messages, A to Z
Failed to collect page data for"Failed to collect page data for /route": importing that route threw during next build, such as a client made from a missing env var. Read the error above it.
Failed to find Server Action "...". This request might be from an older or newer deployment.A page from an old build called a Server Action ID the new build does not have, so Next.js answers 409. Use Skew Protection or a fixed encryption key.
Uncached data was accessed outside of <Suspense>Since create-next-app 16.4, a page that reads cookies() or uncached data outside Suspense fails next build. Wrap the read in Suspense, or cache it.
useSearchParams() should be wrapped in a suspense boundary at page "/..."next build fails when a Client Component reads useSearchParams() on a static page with no <Suspense> above it. Wrap the smallest part that reads it.
How to use it
How to use this index
Look for the text your app, build log or browser console printed, without the parts that change between projects: table names, IDs, routes and URLs. The list is sorted by that text.
Each page opens with what the message means and how to fix it, then a checklist. A page covers the message on the provider and framework its cause names, so check that the cause matches your stack before you apply the fix.
Supabase errors · Vercel errors · Stripe errors · All provider errors
Browse all launch guides · Read resources · How to make and check your next change