Hey
@879390719394082927
Can you share your package.json?
Notice how some of your Payload deps are different versions:
"@payloadcms/db-postgres": "^3.30.0",
"@payloadcms/next": "^3.30.0",
"@payloadcms/plugin-seo": "^3.31.0",
"@payloadcms/richtext-lexical": "^3.30.0",
...
"payload": "^3.30.0"Can you pin your payload version in package.json to 3.31.0, then delete node_modules, .next, and your lockfile and reinstall
Thank you
I believe It's fixed
but I'm facing some other issues with SEO plugin
What other issues?
as soon i install and activate the plugin,
I'm getting a lot of hydration errors.
Do you have extensions installed?
Try in incognito/guest mode/without extensions
And hydration errors where? In your frontend, in the admin ui?
ya, in frontend
and also when now I upgraded my nextjs because of the latest CSV bug, my admin panel is not opening at all
CSV bug? Are you referring to the middleware CVE?
Payload doesn't use middleware in the core packages at all.
Upgrading to next 15.2.3 should be fine
ok, but it's not working for me
Try downgrading to 15.2.3
Or deleting node_modules, .next, lockfile and reinstalling
What do you get in the logs
mostly hydration errors,
You are mounting a new html component when a previous one has not first unmounted. It is an error to render more than one html component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <html> and if you need to mount a new one, ensure any previous ones have unmounted first.
Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
Do you have a nested html layout? Did you create a
layout.tsxoutside of the
(payload)folder?
ya
Ok, then that's the issue right there
There's already a layout.tsx in the (payload) folder
You should remove your layout.tsx
Scope it to a group outside of (payload)
Like this
https://github.com/payloadcms/payload/tree/main/templates/website/src/appThanks
@654031862146007055it got fixed,
My pleasure
hey Said
do you know how to add a code block for lexicalEditor (rich text)?
Star
Discord
online
Get dedicated engineering support directly from the Payload team.