Repository navigation
InvalidFieldRelationship: Field Form has invalid relationship 'forms'. #9790
Replies: 2 comments
|
Hey I know you posted this a while ago and might've figured it out, but if I'm not mistake, I think this type of error happens whenever the data inside of endpoints/seed wasn't seeded right. This could possibly be from the database just not being connected or your server wasn't running. Check inside of |
|
Hello people, this error just happened to me, and I was able to fix it, in short, it broke when I added the Vercel Blob Storage plugin, my payload.config.ts looked like this, as it was in the template: So when i came and added the Vercel Blob Storage Plugin, i did it like this: And thus the error appeared. But on literally the only other web result concerning this error, they talked about overriding the Form plugin, so i finally added And it worked, as i no longer was overriding the Form plugin. Hope it helps someone |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Payload 3.4.0, supabase postgre, supabase storages3 + clone Github/../../templates/website,
I get this error at pnpm dev:
node_modules/.pnpm/payload@3.4.0_graphql@16.9.0_monaco-editor@0.52.0_react-dom@19.0.0-rc-66855b96-20241106_react_re2uwt7p7ymmoimatcnocwcioe/node_modules/payload/dist/fields/config/sanitize.js (48:1) @ eval
⨯ InvalidFieldRelationship: Field Form has invalid relationship 'forms'.
at Array.forEach ()
digest: "4014407719"
The only const which references 'forms' as a relationship is in jmm/src/app/payload/blocks/Form/config.ts (provided in the example):
export const FormBlock: Block = {
slug: 'formBlock',
interfaceName: 'FormBlock',
fields: [
{
name: 'form',
type: 'relationship',
relationTo: 'forms',
required: true,
},
// etc...
Any idea? Thanks!
All reactions