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

576
Views
Vue 'watch' problem: Declaration emit for this file requires using private name 'handler'. An explicit type annotation may unblock declaration emit

I use 'watch' in the component, just like:

watch: {
        config:{
            handler: function(){
                this.colorAnalysis = this.$props.config;
            },
            deep: true,
            immediate: true
        },

It can work, but show message below:

Declaration emit for this file requires using private name 'handler'. An explicit type annotation may unblock declaration emit.

I can not figure out what's the problem, and how to prevent this situation. Please give me some directions.Thanks.

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

0

I do not figure out the reason. But when I change format to:

watch: {
    config() {
        this.colorAnalysis = this.$props.config;
    },
}

the message disappeared!

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!