Can anyone help to understand this error ? tried to run the init app and got this error.
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.0As well as
How did you create the project? create-payload-app should automatically fill in the editor property for new projects
npx create-payload-app
thanks
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
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
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?🤔
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
How do I add an editor?
@876311962869456946
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
that fixed it.
now to get familiar with this all and do my best to integrate Astro3.0 💥 🚀
Star
Discord
online
Get dedicated engineering support directly from the Payload team.