There were 1 errors validating your Payload config, 1: "editor" is required

default discord avatar
anisulislampranto
last month
8

Can anyone help to understand this error ? tried to run the init app and got this error.

  • discord user avatar
    alessiogr
    Payload Team
    last month

    Hey, you need to add the editor property in your payload 2.0 config.



    Check out the migration guide here:

    https://github.com/payloadcms/payload/releases/tag/v2.0.0

    As well as


    https://payloadcms.com/docs/rich-text/overview


    How did you create the project? create-payload-app should automatically fill in the editor property for new projects

  • default discord avatar
    anisulislampranto
    last month

    npx create-payload-app



    thanks

  • discord user avatar
    alessiogr
    Payload Team
    last month

    when did you use the command? Maybe you ran it before the 2.0 release, and then installed payload post-2.0.



    If you haven't done any work yet, re-running the command should be the easiest solution for you

  • default discord avatar
    anisulislampranto
    last month

    i created a payload base tried to run got that error. then i had no idea so deleted the project and tried to install is again. then tried to run it got same error. then i posted here for help. and i just tried to restart the server now still getting the error.



    i am now trying to follow the migration guide



    guide helped



    thanks

  • default discord avatar
    jjaimealeman
    4 weeks ago

    This is quite misleading to suggest the use of

    npx create-payload-app project-name

    😦



    The

    'installer"

    should create all this for us,

    shouldn't it?

    🤔

  • default discord avatar
    taun2160
    4 weeks ago

    I've just run npx create-payload-app and receiving the same error:


    05:39:29] ERROR (payload): There were 1 errors validating your Payload config
    [05:39:29] ERROR (payload): 1: "editor" is required


    The docs recommend npx create-payload-app


    https://payloadcms.com/docs/getting-started/installation


    How do I add an editor?

  • discord user avatar
    alessiogr
    Payload Team
    4 weeks ago

    @taun2160 @jjaimealeman it should do it automatically for you - I'm not sure why it doesn't.



    This might help:



    npx create-payload-app@latest project-name
  • default discord avatar
    jjaimealeman
    4 weeks ago
    YEAH BUDDY!!

    that fixed it.



    now to get familiar with this all and do my best to integrate Astro3.0 💥 🚀

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.