With react 19 I have an error with babylon-image
TypeError: Cannot set property children of # which has only a getter
<plane
billboardMode={Mesh.BILLBOARDMODE_ALL}
height={size}
name={`hotspot ${name}`}
position={hotspotPosition}
width={size}
alphaIndex={1}
{...rest}
>
<advancedDynamicTexture
createForParentMesh
generateMipMaps
height={textureScale * size}
name={name + "hotspot-texture"}
samplingMode={Texture.TRILINEAR_SAMPLINGMODE}
width={textureScale * size}
>
<rectangle thickness={0}>
<babylon-image source={icon} /> {/*Error*/}
</rectangle>
</advancedDynamicTexture>
</plane>
Can you help me?
Thanks!