Comments (8)
Please read the documentation on using jsonexport in the browser and you'll be fine:
https://www.npmjs.com/package/jsonexport#browser
from jsonexport.
My best guess is webpack is having a tough time with this code: https://github.com/kauegimenes/jsonexport/blob/master/lib/core/escape-delimiters.js#L26
I think webpack is having an issue with a multlined ternary statement
I will not be performing additional testing or research on this issue. That is my guess. Try editing that file in your local copy and turn the ? statement into an IF ELSE, if it works then we can talk more.
from jsonexport.
The error was on line 13
https://github.com/kauegimenes/jsonexport/blob/master/lib/core/escape-delimiters.js#L13
A let statement...
Changing it to var works but fails on the next let statement.
I am hoping top use jsonexport in the browser for a VueJS streamed client request to convert JSON to CSV. Works fine in non-uglified mode.
This leave me wondering if babel parses the module to convert it to ES5 since UglifyJs only supports ES5.
Anyhow it's probably not a jsonexport issue but all other modules import and uglify fine.
from jsonexport.
Ohhhh shit, you are trying to webpack..... duh... one second
from jsonexport.
Please close issue when satisified
from jsonexport.
import jsonexport from "jsonexport/dist";
Thank you sooo much!
Cheers from Quebec/Canada!
from jsonexport.
Hey Quebec/Canada, you're using TypeScript? Hell yeah, Angular5? I swear I've seen your face on other issue reports.
Besides the point, an Angular5 project needed in-browser exporting which brought me to jsonexport last year which was NOT webpack compatible until I added it and became a contributor of this package.
I do love this package a lot. It has made my exporting life, in browser especially, a world of easier than in the past.
Farewell good fella
from jsonexport.
Our stack is... https://stackshare.io/leadfox/leadfox
I fell in love with VueJs's simple setup and lightness.
We use jsonexport to Promise.each() multiple Rest API requests over millions of contacts for CSV exports.
With jsonexport we can let the web client work instead of preparing the CSV server-side.
Thanks again.
from jsonexport.
Related Issues (20)
- Stream does not support typeHandlers option HOT 3
- How to remove the title option from inside xls file
- Nested JSONObject not correctly mapping to csv
- Update v2.5.2 to v2.5.3 with Bug Fixes for package.json stuck on v2
- verticalOutput with Arrays HOT 1
- No option to ignore fields / limit fields to export ? HOT 2
- large files not converting HOT 10
- (I think I) found a bug HOT 6
- typeHandlers tests & more samples
- speed question/issue HOT 4
- Column values with zero (0) are being replaced with "" HOT 3
- Complex JSON array - unexpected behavior HOT 1
- Need Help : Complex Json Array to CSV HOT 2
- Json Complex Example HOT 2
- JSON Array not converting to CSV HOT 1
- TypeError: this._options.handleDate is not a function HOT 5
- Question. What is expected behaviour when exporting objects where some do not have all fields in header HOT 12
- typeHandlers is not part of UserOptions HOT 2
- CLI: Json Complex Object outputting all keys as headers HOT 11
- Exporting a dataset with a hashtag (#) in a string breaks CSV HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsonexport.