DataCloneError: Failed to execute 'postMessage' on 'Worker': [object Array] could not be cloned

How to solve this problem!
An error occurred while rendering. Rendering has stopped.
DataCloneError: Failed to execute ‘postMessage’ on ‘Worker’: [object Array] could not be cloned.

Error: Failed to execute ‘postMessage’ on ‘Worker’: [object Array] could not be cloned.
at runTask (http://localhost:5173/map/node_modules/.vite/deps/cesium.js?v=859da5c5:26325:21)
at async scheduleTask (http://localhost:5173/map/node_modules/.vite/deps/cesium.js?v=859da5c5:26339:20)

Hi @guanzheyuan, would you be able to describe how you’ve configured your app?

For instance, here’s the suggested workflow for using CesiumJS with vite.

I’ve solved this problem thanks a lot

2 Likes

Hi @guanzheyuan,
I also have the same error as above, can you share with me how to solve it?

1 Like

I have encountered the same issue and really need your assistance.
Thanks a lot!

1 Like

I also encountered this issue when implementing a mouse movement feature to select a model entity drawn on a map. Please let me know how you solved it. Thank you so much.

1 Like

Does anyone know how to fix this error?

2 Likes