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

Cannot read properties of undefined (reading 'call')

Open craigvindico opened this issue 2 years ago • 3 comments

Firstly thanks for creating this library, but ive just tried to implement it and im getting the following console error:

vue-json-csv.common.js?2347:5361 Uncaught TypeError: Cannot read properties of undefined (reading 'call')

The vue application builds fine.

craigvindico avatar Jun 17 '22 13:06 craigvindico

Hi. I get the same as this too -- did you work it out?

darrenparkinson avatar Jun 20 '22 10:06 darrenparkinson

Ah, it's because v2.0.0 switched to Vue 3 and this app is still using Vue 2. I updated my app to use "vue-json-csv": "^1.2.12", and it started working...

darrenparkinson avatar Jun 20 '22 11:06 darrenparkinson

Ah, it's because v2.0.0 switched to Vue 3 and this app is still using Vue 2. I updated my app to use "vue-json-csv": "^1.2.12", and it started working...

Nice catch. This solved the issue for me. This should be added to the readme (unless I just missed it?).

aschalund avatar Sep 20 '22 13:09 aschalund