question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Papaparse not working with browserify

See original GitHub issue

Because of the way browserify module’s work, the scope here is not actually window.

While the this keyword is good for keeping everything inclosed, the papaparse library uses the window.postMessage function, so the anonymous function must return window, otherwise you run into errors.

Before I submitted a PR, I wanted to get @mholt’s opinion on if this is the right move here.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:16 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
MaKleSoftcommented, May 31, 2018

Um, was this change reverted at some point? Having the same issue with importing as es6 module, since this is undefined in that case.

0reactions
ChrisAlvarescommented, Mar 13, 2015

Yes! This is working. Thanks for all the hard work on this gents.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using PapaParse with npm and browserify? - Stack Overflow
I have installed the package with npm i --save papaparse and it is in the node_modules folder.
Read more >
Javascript – How to import PapaParse with Browserify to inject into a ...
browserify javascriptpapaparse. I'm trying to import PapaParse and use it inside a controller. This is what i tried so far: import Papa from...
Read more >
FAQ - Papa Parse
General. Why use Papa Parse? There's a thousand CSV libraries for Javascript. Papa is different. It's written with correctness and performance in mind....
Read more >
if you want to include a polyfill, you need to: - add a fallback ...
I had a minor fix, I was able to resolve the stream-browserify error by using npm install stream but I still have these...
Read more >
How to load a csv file - OSS Support - k6 community forum
I tried to browserify csvtojson npm package. ... data.csv"); export function setup() { return Papa.parse(data, { header: true }); } export ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found