Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
How to use an external csv-file in a vue component using vue-papa-parse?

I'm a beginner working in view, being not so routined so far... For using an external csv-file in a vue component I am using parsepanda. I took this issue as my template, but I get an Error: TypeError: this.onComplete is not a function. Here is my code so far:

data() {
return {
    headData: {},
}
},

methods: { 
onComplete: function(csvData) {
this.headData = csvData
},
readFile: function() {
let url = "https://docs.google.com/spreadsheets/d/e/...&output=csv";
this.$papa.parse(url, {
    header: true,
    complete: function(results) {
          this.onComplete(results.data)
    }
});
}
},  


mounted() {
this.readFile()
console.log(this.headData)
}

I hope someone can help me... I'd like to use the csv-data as an array for my vue data. Thanks and kind regards, Corinna

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!