Just in case, this also fixed the issue
{
"packageManager": "[email protected]",
"overrides": {
"react": "$react",
"react-dom": "$react-dom"
},
"dependencies": {
"again": "^0.0.1",
"next": "15.0.1",
"next-auth": "^5.0.0-beta.25",
"react": "19.0.0-rc-69d4b800-20241021",
"react-dom": "19.0.0-rc-69d4b800-20241021"
}
}
You can check this GitHub link for more information https://github.com/vercel/next.js/issues/72204