Like what we’re doing? Star us on GitHub!

Payload Nextjs error only nextjs working not payload

JustineNext
3 weeks ago
4

I have a nextjs and payload cms server running together. nextjs is the latest version 13 while payload is also the latest version, when i try to run the app, it starts payload cms and connects it to mongo db, then proceeds to run nextjs app which runs perfectly, but even after connecting to mongo db the payload does not load the payload config hence payload only starts but cannot be loaded in the browser

  • denolfe
    Payload Team
    3 weeks ago
    payload does not load the payload config

    How are you determining this? Are there any errors in terminal or browser console?

  • JustineNext
    3 weeks ago

    its not showing any errors, it just starts payload, connects to mongo db but its not progressing to next step which is starting nextjs server here are my package.json, server.js and payload config files



    initially when i added payload to nextjs, it had Media and users collections, it was working fine, but when i added one more collection, its not working anymore, when i remove the collection, its working, the collection does not have any errors, and there are errors being shown

    image.png
    image.png
    image.png
    image.png
  • denolfe
    Payload Team
    3 weeks ago

    Can you show the code for the problematic collection?

Open the post
Continue the discussion in Discord
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More