Skip to content

Could not find ... in the fieldSchemaMap. #11

@0vg

Description

@0vg

I am using the following payload packages:

"@payloadcms/db-postgres": "^3.20.0",
"@payloadcms/next": "^3.20.0",
"@payloadcms/payload-cloud": "^3.20.0",
"@payloadcms/richtext-lexical": "^3.20.0",
"payload": "^3.20.0",
"payloadcms-lexical-ext": "^0.5.3",

For some reason on the Vimeo and Youtube feature I get the following error:

ERROR: There was an error building form state
    err: {
      "type": "Error",
      "message": "Could not find \"courses.content.lexical_internal_feature.youtube.youtube\" in the fieldSchemaMap",
      "stack":
          Error: Could not find "courses.content.lexical_internal_feature.youtube.youtube" in the fieldSchemaMap 
.....

My code where I use the richtext is just:

{
          name: "courseDescription",
          type: "richText",
          localized: true,
          required: true,
          label: "Course Description",
          editor: lexicalEditor({
            features: ({ defaultFeatures }) => [
              ...defaultFeatures,
              // Extended features from payloadcms-lexical-ext:
              TextColorFeature(),
              FixedToolbarFeature(),
              HighlightColorFeature(),
              BgColorFeature(),
              YoutubeFeature(),
              VimeoFeature(),
              // Optionally, add BlocksFeature if you want custom blocks in this field:
              // BlocksFeature({
              //   blocks: [Embed, VisualAnnotation],
              // }),
            ],
          }),
        },

why is it giving me this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions