vue-json-csv icon indicating copy to clipboard operation
vue-json-csv copied to clipboard

Failed to compile after upgrading to version 1.2.8

Open egcmi opened this issue 4 years ago • 2 comments

Hi again, thanks for fixing my encoding issue #23 so quickly. I just upgraded from version 1.2.5 to 1.2.8. However I was not able to try it yet as it fails to compile. I get this error message:

Failed to compile.

./node_modules/vue-json-csv/dist/vue-json-csv.common.js
Module parse failed: Unexpected token (17562:8)
You may need an appropriate loader to handle this file type.
|         delimiter: this.delimiter,
|         encoding: this.encoding,
|         ...this.advancedOptions
|       })
|       if (this.separatorExcel) {
 @ ./node_modules/babel-loader/lib??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./app/javascript/src/shared/startlists/lead/lead_startlist.vue?vue&type=script&lang=js& 48:0-35
 @ ./app/javascript/src/shared/startlists/lead/lead_startlist.vue?vue&type=script&lang=js&
 @ ./app/javascript/src/shared/startlists/lead/lead_startlist.vue
 @ ./node_modules/babel-loader/lib??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./app/javascript/src/judges/dashboard/index.vue?vue&type=script&lang=js&
 @ ./app/javascript/src/judges/dashboard/index.vue?vue&type=script&lang=js&
 @ ./app/javascript/src/judges/dashboard/index.vue
 @ ./app/javascript/packs/judges/dashboard/index.js
 @ multi (webpack)-dev-server/client?http://localhost:3035 ./app/javascript/packs/judges/dashboard/index.js

File ./app/javascript/src/shared/startlists/lead/lead_startlist.vue is of course the file where I use JsonCSV. I did not change anything else, only updated your package, and used not to get this error in 1.2.5. If you could help me, it would be very appreciated. Let me know if you need further info. In the meantime I'm downgrading to 1.2.5 for development purposes.

Thank you in advance.

egcmi avatar Aug 23 '19 08:08 egcmi

Which version of VueJs version of NodeJs are you using ?

I just tried with VueJS 2.6 & Node v10.16.3 LTS and I don't have any compilation issue.

Belphemur avatar Aug 23 '19 14:08 Belphemur

I have the same: Vue 2.6.10 and Node 10.16.3 LTS.

egcmi avatar Aug 26 '19 09:08 egcmi