Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

could anyone help me add the lexicalEditor in payload v2?

default discord avatar
lucasbrumalast year
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
    clement6396last year

    Did you have something in your field before using Lexical?

  • default discord avatar
    lucasbrumalast year

    I was using the lexical plugin

  • default discord avatar
    clement6396last year

    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
    last year

    That is exactly right

    @220272696582340629

    thanks for chiming in here!

  • default discord avatar
    lucasbrumalast year

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

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.