Promise.allSettled() type error while running next build

Recently, I am working on a Next.js project. In this project, Promise.allSettled() is used a lot to optimize the performance of…