Papaparse not working with browserify
See original GitHub issueBecause 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:
- Created 9 years ago
- Comments:16 (13 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Um, was this change reverted at some point? Having the same issue with importing as es6 module, since
this
is undefined in that case.Yes! This is working. Thanks for all the hard work on this gents.