-
Notifications
You must be signed in to change notification settings - Fork 99
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
Labels
Comments
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 |
Facing same issue |
any news? |
Hitting the same thing |
I have same problem |
Same issue |
Experiencing same issue, this happens when passing a function to the worker |
Same issue here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)
The text was updated successfully, but these errors were encountered: