payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
25.74k stars 1.64k forks source link

Re: error on forgot-password route #8349

Closed hristokoev closed 1 month ago

hristokoev commented 1 month ago

Link to reproduction

No response

Environment Info

Payload: beta.108
Node.js: 22.8.0
Next.js: 15.0.0-canary.160

Describe the Bug

This is related to my previous reported issue, #8155.

It was fixed in the latest release - v3.0.0-beta.108 with #8244.

This now works when the user is logged out, but there's the edge case for when the user is logged in, it shows this error:

image

The log from the terminal:

image

Other routes such as create-first-user are correctly redirecting to the main admin dashboard if the user is logged in.

Reproduction Steps

No customizations or changes to the config have been made. Run the template as-is.

Adapters and Plugins

No response

akhrarovsaid commented 1 month ago

I believe the error is originating from here.

I'm investigating, definitely a RSC issue, will hopefully write up a PR with a fix for this later today. Hang tight!

paulpopus commented 1 month ago

Fixed in https://github.com/payloadcms/payload/pull/8374

github-actions[bot] commented 1 month ago

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.