Replies: 2 comments 1 reply
-
Never mind, I figured out the issue. The issue was that the email should be unique and I was creating the same email. |
Beta Was this translation helpful? Give feedback.
-
I was facing same issue, I first ran the command for generate the type and then run the next server again |
Beta Was this translation helpful? Give feedback.
-
I create a payload app using
npx create-payload-app
I have this. ValidationError: The following field is invalid: email
src/seed/index.ts
src/seed/customerForm.ts
src/collections/Customers.ts
src/server.ts
When I uncomment (required: true) in customers.ts
I get this error: ValidationError: followingFieldsInvalid firstName, lastName
when I comment (required: true) in customers.ts
ValidationError: The following field is invalid: email
NB: I only want to use payload.create for creating data.
I have stopped the server and rerun it many times (yarn dev)
Any help is appreciated
Beta Was this translation helpful? Give feedback.
All reactions