Build Stuck at Linter and Type checking Step – Works on Retry

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.

Hey, Shubham!

I’ll leave it to the wider community to jump in incase they’ve seen it before.

I would recommend getting a reproducible example for us to dig into and see if this is a bug on our side or in your code.

Please take a look and then add whatever you can here to help the rest of us see what’s going wrong

1 Like

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.

2 Likes