Open pulgueta opened 1 month ago
have you fixed it?
i fixed it, its actually a human error
@drithh Do you mind sharing how you solved it?
In my case, I forgot to add the use-server
or server-only
directives to my login mechanism. I had put the use-client
directive in the login form and imported the login mechanism, which made Next.js think the login mechanism should run in the browser. However, it should run on the server.
Link to the code that reproduces this issue
https://github.com/pulgueta/OSS-Interviewer
To Reproduce
bun install
bun dev
Current vs. Expected behavior
Current behavior:![image](https://github.com/vercel/next.js/assets/38195996/5b42633a-9b8c-43eb-9b0f-8cdc754e6aab)
Expected behavior: Should just work
Provide environment information
Which area(s) are affected? (Select all that apply)
Runtime
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
My
next.config.mjs
: