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

worker:false doesn't work #152

Closed garhul closed 10 months ago

garhul commented 1 year ago

Since there's a bug with worker:true and transformHeader I'm forced to use worker:false for readString function.

The type at @types/papaparse for config forces worker to be true for readString function. Using papaparse package directly instead of react-papaparse allowed me to get the config working with papa.parse function.

here's the offending line. https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/papaparse/index.d.ts#L276

vsnthdev commented 11 months ago

I'm also have the same issue, switching to papa.parse for now 🤞