I am getting {TypeError: Object.groupBy is not a function} error after deploying the project to vercel.

It worked fine on my local. Does vercel not support this now?
All configurations are standard for "next": "14.2.15", created using npx create-next-app@latest