beamworks / react-csv-importer

Uploader + CSV parser + raw file preview + UI for custom user column mapping, all in one
https://www.npmjs.com/package/react-csv-importer
MIT License
231 stars 95 forks source link

Issue on Safari #50

Closed ElChapitan closed 3 years ago

ElChapitan commented 3 years ago

When using in Safari, I get this error:

Import error: e.stream is not a function. (In 'e.stream()', 'e.stream' is undefined)

Also tested in Chrome and Firefox, which appear to work.

unframework commented 3 years ago

I was able to repro this on an older iPad running Safari. As it turns out the stream() method on Blob objects was not supported until more recent versions of the browser engine. Merged #51 with a fix (added a polyfill), not released yet though.

unframework commented 3 years ago

Fix released in v0.5.1. Thanks for reporting, and please let me know if this happens again!