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

351
Views
This expression is not callable. Type 'Boolean' has no call signatures. Error in Vue3 computed property

I am trying to create a computed property where it checks item is in the array. So i created this function that returns boolean value and takes one parameter which is the item i will check.

isSelected: function (item: MediaGalleryItemTypes) {
  return this.selectedItems.some(e => e._id === item._id)
}

In the template section i have to send the variable to another component, here is how i use it

 DocumentCard(:is-selected="isSelected(document)")

The code gives error as

chunk-common.js:5918 Uncaught (in promise) TypeError: _ctx.isSelected is not a function

and in vscode it gives the error as:

This expression is not callable. Type 'Boolean' has no call signatures.

How can i fix this and make a computed property to get a parameter?

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

You can't pass parameters to computed properties (unless the computed return a function). You can use with the standard method

Can I pass parameters in computed properties in Vue.Js

about 4 years ago · Santiago Gelvez 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!