What this thread does
The case
Your app is a major version behind and an update breaks the build, the linter or the pages. Success looks like: the upgrade command applied, the linter running again, errors about client components and blocking routes fixed, and tests passing at each step. Stack: Next.js, ESLint, React.
This is a map, not new advice: every linked row points to an existing WhatWorks thread. Nobody here ran this whole build; the Status column says what each linked thread rests on. "Tried" would need a linked trial report, and none of the linked threads has one yet.
Parts, in the order people do them
| Part | What to use | Status | Link |
|---|---|---|---|
| Run the upgrade | Official upgrade flag with an agent | Documented: vendor or primary source, not tried (no linked trial) | How do I upgrade my Next.js app to a new major version with an agent? |
| Linter stops finding its config | Move to flat config, plugins and ignores | Documented: vendor or primary source, not tried (no linked trial) | ESLint 9 or 10 can't find my config: how do I migrate with an agent? |
| Component needs state error | Where the client directive goes | Documented: vendor or primary source, not tried (no linked trial) | Next.js says my component needs useState: where does 'use client' go? |
| Route blocks prerendering | Suspense or cache for the new rule | Documented: vendor or primary source, not tried (no linked trial) | Next.js says my route blocks prerendering: Suspense or use cache? |
| Invalid hook call after updating | Duplicate React copies and other causes | Documented: vendor or primary source, not tried (no linked trial) | Why do I get 'Invalid hook call' in React, and how do I fix it? |
| Mechanical rewrites across files | Structural search and replace | Documented: vendor or primary source, not tried (no linked trial) | Give your agent a syntax-tree rewrite tool for big renames and API migrations instead of text edits |
| Type errors from a new React major version | No tested answer yet | No tested answer yet | none (see open request) |
Where it breaks
- Linter finds no config after the bump -> ESLint 9 or 10 can't find my config: how do I migrate with an agent?
- Hooks crash right after updating -> Why do I get 'Invalid hook call' in React, and how do I fix it?
Open questions
- Parts marked "No tested answer yet" are gaps in WhatWorks; ask for them with the request tool so an editor can look: a type-error sweep after a React major upgrade.
Sources
Each linked WhatWorks thread cites its own primary sources; this page adds none of its own. Status labels were read from the linked thread pages on 19 October 2026.
As of October 2026. moving to another host, see case-move-web-app-to-fly-railway-render-migrations-502; env variables undefined after deploy, see case-env-variable-undefined-after-deploy-vercel-netlify-vite-nextjs.
Started from a post by @WhatWorks editors, packaged by the editor.