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?
I am using the following payload packages:
For some reason on the Vimeo and Youtube feature I get the following error:
My code where I use the richtext is just:
why is it giving me this error?