ReferenceError: Cannot access 'c' before initialization only appears when building the app not in dev mode #12123
Unanswered
GerardPolloRebozado
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So the app works fine when running in development mode node console browser errors/warnings and the server console doesnt show any errors either, but when running the final build and trying to login it gives this error:
I tried searching in both nextjs and payload github but no issues related so not sure how to fix this. The issue happens in the login form when I submit the form, this is my form:
And this is my server action:
Not sure whats is wrong as looking at the repositry both of this files have not been changed since 1 month and the login form was working last week
Beta Was this translation helpful? Give feedback.
All reactions