#Setup with Templates

1 messages · Page 1 of 1 (latest)

vague river
#

Trying to setup Payload with Next JS. Using the template at https://github.com/payloadcms/template-website for the CMS and that works as expected. The NextJS template at https://github.com/payloadcms/template-website-nextjs throws an error when you try to hit the homepage. Looks to be a graphQL error.

@runic shard tagging you at your request.

GitHub

The official website template for Payload. Contribute to payloadcms/template-website development by creating an account on GitHub.

GitHub

The Next.js website for the official Payload website template - GitHub - payloadcms/template-website-nextjs: The Next.js website for the official Payload website template

silent bay
#

field name issue?

vague river
#

I did try to adjust that query but then everything 404s which is nice because the base 404 page does work so I can deduce that the Next project is functioning properly

#

Cannot query field 'formIntroContent' on type 'FormBlock'

silent bay
#

If you replace that with the suggestion, does it work?

#

just introContent

vague river
#

Then everything 404s

silent bay
#

Odd!

vague river
#

so, the 404 page comes up properly, but it does for the home page and 'posts'. (I seeded the database also to rule that out)

golden aspen
#

We should have this finished up within a week or so. It's very far along, and I will do my best to post updates to these threads as I have them.

vague river
#

Thank you for the help and the heads up!