jquery-csv icon indicating copy to clipboard operation
jquery-csv copied to clipboard

Add jquery.csv.min.js not recognized by minify

Open garug opened this issue 4 years ago • 6 comments

I'm trying add jquery-csv in my application, tried some solutions but when invoke .toArrays got 'cannot call toArrays of undefined'

garug avatar Jul 06 '20 20:07 garug

Are you using jQuery? Did you import jQuery first?

evanplaice avatar Jul 07 '20 01:07 evanplaice

Yeah, jquery is imported.

I resolved putting some comment before the script, like

/*!
 * jquery-csv
 */

Maybe add some infos like version or author to the repository? This works very well for me.

garug avatar Jul 07 '20 11:07 garug

@garug I am experiencing the same issue. What script are you referring to? Are you talking about the custom script you are writing or the jquery-csv.js file ?

adriangordon1231 avatar Mar 26 '21 04:03 adriangordon1231

@garug I am experiencing the same issue. What script are you referring to? Are you talking about the custom script you are writing or the jquery-csv.js file ?

In jquery.csv.min.js

garug avatar Mar 26 '21 14:03 garug

@garug Thanks. What did the trick for me was using "$" instead of "jQuery"

adriangordon1231 avatar Mar 27 '21 16:03 adriangordon1231

I'm curious. Why are you minifying an already minified source? Why not use jquery.csv.js?

evanplaice avatar May 13 '21 01:05 evanplaice