⨯ TypeError: Cannot read properties of undefined (reading 'bind')
hi! Can someone please help me with this issue:
⨯ TypeError: Cannot read properties of undefined (reading 'bind')
at h (.next/server/chunks/999.js:1:8478)
at l (.next/server/chunks/999.js:1:8118)
at l (.next/server/app/dashboard/page.js:1:20979) {
digest: '3113189919'
}
I went into those chunks and it's from this:
This is the code from files which stack trace has:
This happens only when i build and run start. Next.js is behind Caddy reverse proxy but it does work properly when in dev mode. I checked ssr as well and that page is def SSR and not static.
Please help me out
1 Reply
Not sure from this, there isn't enough information to have an answer
If you removed everything related to Better-auth in that file, does everything work?