Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught DOMException: Failed to execute 'postMessage' on 'Worker': An object could not be cloned #85

Open
sulhadin opened this issue Sep 15, 2020 · 9 comments

Comments

@sulhadin
Copy link

A clear and concise description of what the bug is.

Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'Worker': capacityList => {
console.log(capacityList);
const capacityMap = {
Total: {}
};
let i = 0;

for (......
} could not be cloned.
at http://localhost:8089/js/modules/npm.koale.bundle-1600196980210.js:16:3150
at new Promise ()
at http://localhost:8089/js/modules/npm.koale.bundle-1600196980210.js:16:2782
at http://localhost:8089/js/modules/npm.koale.bundle-1600196980210.js:16:3619
at runReport (http://localhost:8089/js/app.bundle-1600196980210.js:54075:26)
at http://localhost:8089/js/app.bundle-1600196980210.js:54105:5
at commitHookEffectListMount (http://localhost:8089/js/modules/npm.react-dom.bundle-1600196980210.js:23796:26)
at commitPassiveHookEffects (http://localhost:8089/js/modules/npm.react-dom.bundle-1600196980210.js:23834:11)
at HTMLUnknownElement.callCallback (http://localhost:8089/js/modules/npm.react-dom.bundle-1600196980210.js:4253:14)
at Object.invokeGuardedCallbackDev (http://localhost:8089/js/modules/npm.react-dom.bundle-1600196980210.js:4302:16)
at invokeGuardedCallback (http://localhost:8089/js/modules/npm.react-dom.bundle-1600196980210.js:4357:31)
at flushPassiveEffectsImpl (http://localhost:8089/js/modules/npm.react-dom.bundle-1600196980210.js:26918:9)
at unstable_runWithPriority (http://localhost:8089/js/modules/npm.scheduler.bundle-1600196980210.js:1024:12)
at runWithPriority$1 (http://localhost:8089/js/modules/npm.react-dom.bundle-1600196980210.js:15104:10)
at flushPassiveEffects (http://localhost:8089/js/modules/npm.react-dom.bundle-1600196980210.js:26885:12)
at performSyncWorkOnRoot (http://localhost:8089/js/modules/npm.react-dom.bundle-1600196980210.js:25802:3)

@sulhadin sulhadin added the bug Something isn't working label Sep 15, 2020
@zant
Copy link
Collaborator

zant commented Sep 27, 2020

Hi! Thanks for reporting.

Can you share your code or a minimal reproduction in a CodeSandbox or repo for us to take a look?

@zant zant added to inspect 🤔 and removed bug Something isn't working labels Sep 27, 2020
@KVPasupuleti
Copy link

@zant
Any update on this?

@gondar00
Copy link

Facing same issue

@laphilosophia
Copy link

any news?

@willh33
Copy link

willh33 commented Mar 15, 2022

Hitting the same thing

@QC2168
Copy link

QC2168 commented Aug 7, 2022

I have same problem

@aurelien-boubennec
Copy link

Same issue

@menasheh
Copy link

Experiencing same issue, this happens when passing a function to the worker

@Reg011
Copy link

Reg011 commented Mar 1, 2024

Same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants