Skip to content

babylon-image TypeError: Cannot set property children of #<Container> which has only a getter #361

@smoya-ekoo

Description

@smoya-ekoo

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions