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

281
Views
Uncaught SyntaxError: Function statements require a function name

I'm trying to use an onClick in a v-btn that calls a function that will perform an action, when I click the browser console returns the following error:

Uncaught SyntaxError: Function statements require a function name

I'm passing the onclick like this:

:onClick="viewForm"

Using the function call as below, the alert I put to perform tests is generated, but without clicking on v-btn, when clicking on v-btn the error is generated:

Uncaught SyntaxError: Unexpected identifier

:onClick="viewForm()"

Does anyone have an idea what the error could be? or if some part of my code doesn't make sense.

Every help is welcome :)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

apparently using @click is working

about 4 years ago · Juan Pablo Isaza Report
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!