could anyone help me add the lexicalEditor in payload v2?

default discord avatar
lucasbruma
last month
5

hey! I've added lexicalEditor in the config file and then I've added the richText field in one of my collections, but I get this error:


'Content


Something went wrong:



Cannot read properties of undefined (reading 'type')'

  • default discord avatar
    <Clement/>
    last month

    Did you have something in your field before using Lexical?

  • default discord avatar
    lucasbruma
    last month

    I was using the lexical plugin

  • default discord avatar
    <Clement/>
    last month

    Ok, for now there is not yet a script to migrate your data to the official Lexical.


    Then you can wait for this script, or clean the data in your DB and Lexical view should work

  • discord user avatar
    seanzubrickas
    Payload Team
    last month

    That is exactly right @<Clement/> thanks for chiming in here!

  • default discord avatar
    lucasbruma
    last month

    thanksss clement ❤️ , I'll try to remove the data

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

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

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