We’ve been facing an intermittent issue where our builds on Vercel get stuck at the “Linting and checking validity of types” step. The process continues indefinitely unless manually cancelled. However, when we trigger the exact same build again, it completes successfully without any code changes.
Framework: Next.js 12
Node version: 18.x
Has anyone else experienced similar behavior? Any ideas on potential causes or ways to debug this? Would appreciate any insights.
By the way, Next.js v12 is EOL now and no longer receives updates. We are also deprecating Node.js v18 next month. We recommend upgrading to Next.js v15 and trying with Node v20 or 22 to see if it helps.