Cannot set lexical editor in Payload config?

default discord avatar
4 weeks ago

As in the picture, it seems I cannot use lexical editor for some reasons. Perhaps I misconfigured, or maybe this error is due to my TypeScript config somewhere else. Can anyone shed a light on this?

The error is in



export default buildConfig({
  serverURL: process.env.PAYLOAD_PUBLIC_SERVER_URL ?? 'http://localhost:3001',
  admin: {
    user: Users.slug,
    bundler: viteBundler(),
  editor: lexicalEditor({}),
  • discord user avatar
    Payload Team
    4 weeks ago

    Hmm, that looks proper to me. Can you bump to latest version of Payload and the editor if you haven't already?

  • default discord avatar
    4 weeks ago

    So after a lengthy attempts to troubleshoot nothing works, I decided to reinstall the


    and now things are fine, Oh well, ...

  • discord user avatar
    Payload Team
    4 weeks ago

    This issue has been fixed in the latest version of richtext-lexical which was released yesterday! Deleting node_modules and re-installing it might have updated it to the latest version, which fixed it 🙂

  • default discord avatar
    4 weeks ago

    That explains it. Thanks for the great plugin again Alessio. 👍

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.