Hi, I’m encountering an issue when trying to add a new item to this component — the screen goes completely white and I get an “Unexpected error” message.
This is how I’m registering the component:
PLASMIC.registerComponent(Test, {
name: "Test",
section: "Section Red",
thumbnailUrl:
"https://www.dropbox.com/scl/fi/fw4ian0xcmsmpj4si0mzd/PlasmicSimpleGallery.webp?rlkey=b8jru84pwsbvpz3luf4yezdkz&raw=1",
props: {
className: {
type: "string",
required: false,
},
items: {
type: "array",
required: true,
itemType: {
type: "object",
fields: {
image: {
type: "image",
required: true,
displayName: "Image",
},
title: {
type: "string",
required: true,
displayName: "Title",
},
href: {
type: "string",
required: false,
displayName: "Link",
},
},
},
},
showLoadMoreButton: {
type: "boolean",
required: false,
defaultValue: true,
},
buttonText: {
type: "string",
required: false,
},
},
} as any);
Here’s the error I get when trying to add an item:
And this is how it looks in the interface:
Do you have any idea what might be causing this crash? I’m wondering if there’s something wrong in how the array or object types are defined.
Thanks in advance!


