react-papaparse icon indicating copy to clipboard operation
react-papaparse copied to clipboard

DataCloneError: Failed to execute 'postMessage' on 'Worker': (header)=>header.toLowerCase() could not be cloned.

Open shakibhasan09 opened this issue 2 years ago • 1 comments

Hi, I'm using [email protected] on [email protected]

readString<Props>(evt.target.result as string, {
    worker: true,
    header: true,
    transformHeader: (header) => header.toLowerCase(),
    complete: (data) => {
      console.log(data);
    },
  });

If I turn off the worker then it's works.

shakibhasan09 avatar Oct 09 '23 01:10 shakibhasan09

This issue is discussed here: mholt/PapaParse/#761

Bunlong avatar Oct 09 '23 07:10 Bunlong