diff --git a/frontend/src/components/DynamicComponent.tsx b/frontend/src/components/DynamicComponent.tsx index 29f54320..b6a0e501 100644 --- a/frontend/src/components/DynamicComponent.tsx +++ b/frontend/src/components/DynamicComponent.tsx @@ -382,6 +382,11 @@ export const DynamicComponent: React.FC = ({ Object.entries(properties).forEach(([key, value]) => { try { + // Display framebuffers round-trip through saved projects as strings + // ('' — the generated metadata lists imageData as a text prop). + // Assigning that string clobbers the element's live ImageData and + // crashes wokwi-elements' firstUpdated (putImageData TypeError). + if (key === 'imageData' && !(value instanceof ImageData)) return; let coerced: any = value; if (typeof value === 'string') { const def = metadata.defaultValues?.[key];