InvalidFieldRelationship: Field Form has invalid relationship 'forms'. #9790
Unanswered
aimarsouris
asked this question in
Q&A
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/[email protected][email protected]_monaco-editor@[email protected]_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!
Beta Was this translation helpful? Give feedback.
All reactions