Hey there, I'm trying to deploy my NextJS app using AWS Amplify/Cognito for Auth. I'm having issues getting the application to deploy properly, the error returned is as follows:
TypeError: Cannot read properties of undefined (reading 'loginWith') at X.notifyOAuthListener (/vercel/path0/market-pay-next/.next/server/chunks/773.js:2:35015) at X.configure (/vercel/path0/market-pay-next/.next/server/chunks/773.js:2:34779) at Object.configure (/vercel/path0/market-pay-next/.next/server/chunks/773.js:4:16700) at 10811 (/vercel/path0/market-pay-next/.next/server/chunks/699.js:1:9658) at t (/vercel/path0/market-pay-next/.next/server/webpack-runtime.js:1:142) at 55013 (/vercel/path0/market-pay-next/.next/server/app/page.js:1:1360) at t (/vercel/path0/market-pay-next/.next/server/webpack-runtime.js:1:142) at r (/vercel/path0/market-pay-next/.next/server/app/page.js:1:4108) at /vercel/path0/market-pay-next/.next/server/app/page.js:1:4147 at t.X (/vercel/path0/market-pay-next/.next/server/webpack-runtime.js:1:1270)> Build error occurredError: Failed to collect page data for / at /vercel/path0/market-pay-next/node_modules/next/dist/build/utils.js:1268:15 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { type: 'Error'Initial research indicates that it is unable to login to OAuth. I have my Cognito User Group set up to talk with the Vercel server but am still getting this error. What am I missing? I'd appreciate any help!

