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.

running latest Auth cms

default discord avatar
.smalltalkman2 years ago
7

[09:39:52] INFO (payload): Connected to MongoDB server successfully!


[09:39:52] INFO (payload): Starting Payload...


[09:39:53] INFO (payload): Payload Admin URL: /admin


[09:39:53] INFO (payload): ---- SEEDING DATABASE ----


ValidationError: The following field is invalid: roles


at beforeChange (C:\Projects\payload\full\examples\auth\cms\node_modules\payload\src\fields\hooks\beforeChange\index.ts:52:11)


at processTicksAndRejections (node:internal/process/task_queues:95:5)


at create (C:\Projects\payload\full\examples\auth\cms\node_modules\payload\src\collections\operations\create.ts:175:29)


at seed (C:\Projects\payload\full\examples\auth\cms\src\seed\index.ts:4:3)


at start (C:\Projects\payload\full\examples\auth\cms\src\server.ts:30:5)

  • default discord avatar
    notchr2 years ago
    @823331358025449502

    Good morning! This error is saying that one of the fields is invalid on your collection. Could we please check out the collection config with the 'roles' field

  • default discord avatar
    .smalltalkman2 years ago

    I did not write it. I am trying to run straight from the latest github repo.

  • discord user avatar
    denolfe
    2 years ago

    What repo specifically?

  • default discord avatar
    notchr2 years ago

    I think they mean the Auth repo

    https://github.com/payloadcms/payload/tree/master/examples/auth/cms

    I could be wrong though



    Looking at the paths in their error

  • default discord avatar
    .smalltalkman2 years ago
  • discord user avatar
    jarrod_not_jared
    2 years ago
    @823331358025449502

    I just pushed a fix for that example. Please pull from Payload and give it another shot



    Thank you for bringing it up here!

  • default discord avatar
    .smalltalkman2 years ago

    working well


    thanks

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.