Bunlong / react-papaparse

react-papaparse is the fastest in-browser CSV (or delimited text) parser for React. It is full of useful features such as CSVReader, CSVDownloader, readString, jsonToCSV, readRemoteFile, ... etc.
https://react-papaparse.js.org
MIT License
363 stars 60 forks source link

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

Open shakibhasan09 opened 10 months ago

shakibhasan09 commented 10 months ago

Hi, I'm using react-papaparse@4.2.0 on next@13.4.19

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.

Bunlong commented 10 months ago

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