PapaParse icon indicating copy to clipboard operation
PapaParse copied to clipboard

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

Open ghost opened this issue 6 years ago • 1 comments

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!

ghost avatar Oct 11 '19 15:10 ghost

I have a similar issue. anyone got further informations?

Hatzen avatar Dec 28 '21 01:12 Hatzen