PapaParse
PapaParse copied to clipboard
Work causing DataCloneError
Hi, I googled this issue seems like it's supposed to be solved previously. I'm still running into it with the latest 5.0.2 build and 4.6.0 build when I turn on the worker. I'm using it in React.
Unhandled Rejection (DataCloneError): Failed to execute 'postMessage' on 'Worker': (value, colNum) => {
if (value && dataset.dataColumns && dataset.dataColumns[colNum] && dataset.dataC...
Papa.parse(file, { worker : true, transform : (value, colNum) =>{ return someTransform(value); } }, step : (results, parser) =>{ }, chunk : (results, parser) =>{ }, error : (err, file, inputElem, reason) =>{ }, complete : (result, file) =>{ }, }) })
This is probably because you used the transform function. Could you confirm that removing them (or removing the usage of workers) solves the problem for you?
Hello friends
Any updates on this. Indeed using transform function for me causes DataCloneError. Removing the transform function fixes it.
The documentation should probably indicate somewhere that worker and transform are mutually exclusive, or log a warning that transform will be ignored if the processing is being done by a worker.
Sadly having the same issue. And found a similar issue #623