Boa tarde, pessoal.
Estou tentando utilizar o preview na interfaces, porém estou recebendo um erro que não consegui identificar aonde está o problema.
Declarei o componente no arquivo interfaces.json
"carousel-home": {
"component": "CarouselHome",
"render": "lazy",
"preview": {
"type": "box",
"width": {
"desktop": {
"fromProp": "carousel-one",
"defaultValue": 1500
},
"mobile": {
"fromProp": "carousel-one",
"defaultValue": 420
}
},
"height": {
"desktop": {
"fromProp": "carousel-one",
"defaultValue": 630
},
"mobile": {
"fromProp": "carousel-one",
"defaultValue": 240
}
}
}
}
E em outro arquivo declarei o componente carousel-home:
"carousel-home": {
"props": {
"blockClass": "carousel-one",
"fromProp": "carousel-one"
}
}
Porém, ao linkar o app, é retornado o seguinte erro:
error: The preview for carousel-home has invalid height. The "fromProp" field is required and should be a string with the name of the prop used to get the height of the preview.
A propriedade está sendo reconhecida pelo Render Runtime
Alguém sabe como resolver?
Obrigado.