vue-worker icon indicating copy to clipboard operation
vue-worker copied to clipboard

Failed to execute 'postMessage' on 'Worker'

Open okwme opened this issue 7 years ago • 1 comments

got this error, any ideas?

DOMException: Failed to execute 'postMessage' on 'Worker': function (){return ccall(ident,returnType,argTypes,arguments)} could not be cloned.
    at eval (webpack-internal:///622:1:3485)
    at new Promise (<anonymous>)
    at Worker.o.post (webpack-internal:///622:1:3301)
    at Object.run (webpack-internal:///622:1:3729)
    at eval (webpack-internal:///241:87:26)
    at http://code.dappbench.com/browser-solc.min.js:1:141533
    at HTMLScriptElement.d.readyState.d.onload (http://code.dappbench.com/browser-solc.min.js:1:141310)

okwme avatar Oct 22 '17 04:10 okwme

With zero context or experience with this plugin, i'd bet you're passing an object that contains a function, which cannot be cloned. There are limitations around what can be posted to a worker, I think it's in the README.md.

counterbeing avatar Feb 15 '18 20:02 counterbeing