Why does structuredClone throw a DataCloneError when cloning a Proxy wrapping a built-in object?
Summary We experienced a production data export failure where a critical service using structuredClone to serialize user session states crashed with DataCloneError. The root cause was an unwrappable exotic object: a Date instance wrapped in a Proxy to track mutation history. While the Date object itself is natively cloneable, the Proxy wrapper prevented the structured … Read more