ELIFECYCLE Command failed with exit code 1
22:26 12 Jan 2025

When I run pnpm run build, the build fails and ends with the error: ' ELIFECYCLE  Command failed with exit code 1.'

"info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules Linting and checking validity of types .Debug Failure. No error for last overload signature ELIFECYCLE  Command failed with exit code 1."

I deleted and reinstalled the node_modules, cleared the cache, and did everything, but the problem still persists. I run my project by pnpm run dev, but nothing error log there.

how to slove this issue

reactjs next.js build pnpm