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

transformHeader option not working with worker:true? #134

Open nippoolg opened 2 years ago

nippoolg commented 2 years ago

I need to make some transformation on header, but can't get this working with transformHeader option? Got exception: DOMException: Failed to execute 'postMessage' on 'Worker': (header, index) => header could not be cloned. Is it supposed to work? Tried simply : transformHeader: (header: string, index: number) => header

jtorreslesp commented 1 year ago

I am also getting this error. Please let us know how to resolve this, thanks.

rconjaerts commented 1 year ago

This is an issue of papaparse, discussed here: https://github.com/mholt/PapaParse/issues/761