I'm getting this error. Uncaught TypeError: Cannot read properties of undefined (reading '$papa')
<script setup>
import { ref, onMounted } from "vue"
onMounted(() => {
this.$papa.parse(file.value, {
header: true,
skipEmptyLines: true,
complete: (results) => {
content.value = results;
parsed.value = true;
},
});
})
</script>
Tried importing VuePapaParse inside component but getting similar error. Uncaught TypeError: VuePapaParse.parse is not a function
Thanks
I'm getting this error.
Uncaught TypeError: Cannot read properties of undefined (reading '$papa')Tried importing VuePapaParse inside component but getting similar error.
Uncaught TypeError: VuePapaParse.parse is not a functionThanks