mholt / PapaParse

Fast and powerful CSV (delimited text) parser that gracefully handles large files and malformed input
http://PapaParse.com
MIT License
12.5k stars 1.15k forks source link

Two issues with worker: complete callback not getting file, papa only parsing once #717

Open ghost opened 5 years ago

ghost commented 5 years ago

Hello,

I did search through the issues before posting this, so please accept my apology if I missed a related issue.

I'm using the latest version of PapaParse (5.1.0) in an Angular 8 application. When I pass a file to Papa, with the worker config option set to true, two things happen:

  1. in the complete cb function the second argument, file, is undefined.
  2. Calling the function again (that calls papa.parse) does not parse the file.

If I set worker to false, both of these problems disappear.

Is this expected behavior? Am I missing something elementary?

If you have a csv file handy, you can test this behavior here:

JSBIN

Any help will be appreciated :)

Thanks!

Hatzen commented 2 years ago

I have a similar issue. anyone got further informations?