Questions tagged [payload-cms]
10 questions
2
votes
1 answer
I have a PayloadCMS error. ValidationError: The following field is invalid: email
I create a payload app using
npx create-payload-app
and I chose to use blank template
I have this. ValidationError: The following field is invalid: email
src/seed/index.ts
import { Payload } from 'payload';
import { customerForm } from…

Byusa
- 2,279
- 1
- 16
- 21
1
vote
1 answer
Using `docker-compose` to set up a development environment for multi-repo project
I'm trying to create a website using SvelteKit and reached a point where I need to add a CMS. I decided to opt for PayloadCMS, but that isn't really relevant. Currently my project is contained in a single git repo where I have a Dockerfile which…

Mihail Mihov
- 13
- 3
1
vote
1 answer
PayloadCMS GraphQL nested fields are null
I'm trying to use the PayloadCMS GraphQL plugin but I'm having issues with the type: "relationship" fields always being null, regardless of what I try. I'm just trying to build a really simple blog, nothing fancy. I asked in the PayloadCMS Discord…

JJ McGregor
- 182
- 1
- 12
0
votes
0 answers
Payload CMS: "npx create-payload-app" fails (creates empty app folder without files)
I am using Payload CMS to build a site. Payload relies on MongoDB, which I am hosting in a Docker container.
The problem is that when the Node utility npx create-payload-app as instructed, and when I follow the prompts, the app does not created. …

CB_at_Swivel
- 23
- 4
0
votes
1 answer
Payloadcms validation bug
I'm using Payloadcms 1.11.2 i'm trying to validate a field with number type using Regexp
it seems that the validation function does not work correctly since it show error message for correct values this happen when i re-click the save button more…

alveomaster
- 1,681
- 2
- 12
- 21
0
votes
1 answer
MongoDB: command aggregate requires authentication
I'm trying to run payload CMS app and built the MongoDB image but when trying to connect to admin panel at http://localhost:3000/admin payload gives me that error.
[08:12:30] ERROR (payload): MongoServerError: command aggregate requires…

Ahmed Mohamed
- 11
- 1
0
votes
1 answer
onSubmit with useCallback is not stepping into the metho
I have a seemingly basic form for my site for people to join a waitlist on a splash page. Using examples I've found I've created the following method which will submit the email provided to my mongodb connection.
Upon clicking the submit button it…

gregwhitworth
- 2,136
- 4
- 22
- 33
0
votes
0 answers
Connect Payload CMS to AWS DocumentDB
I have the following code for Payload CMS that tries to connect to DocumentDB using TLS and a certificate:
import express from 'express'
import nodemailerSendgrid from 'nodemailer-sendgrid'
import payload from 'payload'
import 'dotenv/config'
//…

khinester
- 3,398
- 9
- 45
- 88
0
votes
0 answers
Payload CMS use Magic Login Strategy from passport.js
I want to be able to log into Payload admin panel using magic login.
The problem is that the payload docs aren't very specific about how to implement Passport strategies. Also the public demo of payload doesn't mention passport…
0
votes
0 answers
Error: Can't resolve 'fs' in Shopify Storefront API
I'm building out a custom CMS integration with my Shopify store and it's called Payload. I've installed the Shopify CLI and am getting 212 Errors due to the Webpack 5 breaking change that removes the polyfills.
ERROR in…

gregwhitworth
- 2,136
- 4
- 22
- 33