Could it be that the studio has problems when registering custom components if the custom component relies on studio components as default values?
I see an error message for each defaultValue
when opening the plasmic studio even though it seems that everything is working correctly.
registerComponent(SliderBase, {
name: "SliderBase",
importPath: "./src/components/custom/SliderBase",
isDefaultExport: true,
displayName: "SliderBase",
props: {
…
thumb: {
type: "slot",
allowedComponents: ["SliderThumb"],
defaultValue: [
{
type: "component",
name: "SliderThumb",
}
],
hidePlaceholder: true,
},
sliderRail: {
type: "slot",
allowedComponents: ["SliderTrack"],
defaultValue: [
{
type: "component",
name: "SliderTrack",
}
],
hidePlaceholder: true,
},
sliderTrack: {
type: "slot",
allowedComponents: ["SliderTrack"],
defaultValue: [
{
type: "component",
name: "SliderTrack",
props: {
filled: true,
}
}
],
hidePlaceholder: true,
},
},
});