I have been facing the same issue, which appears to be related to the upgrade to Next.js 15. In previous versions of Next.js, parameters were synchronous; however, in Next.js 15, they are now returned as promises. Here are some articles for better understanding