Change8
Error2 reports

Fix DataCloneError

in Bun

Solution

DataCloneError in Bun generally arises when attempting to transfer objects between contexts (like worker threads or WASM) that contain non-transferable or non-clonable data, such as functions, native objects, or circular references. To resolve this, either restructure your data to exclude these problematic elements before transferring or leverage structured cloning alternatives allowing custom handling of specific data types that are not natively clonable in Bun. Ensure that you are only transferring plain JavaScript objects, arrays, and primitive values when using the default cloning mechanism.

Timeline

First reported:Dec 19, 2025
Last reported:Dec 23, 2025

Need More Help?

View the full changelog and migration guides for Bun

View Bun Changelog