Uncaught (in promise) TypeError: selfHook.call is not a function
Asked Answered
B

2

6

I am using Vue-Multiple Select package for Multiple Select Options.

https://vue-multiselect.js.org/#sub-getting-started

After following their instruction I am getting an Error.

enter image description here

Very Unknown Error to me. What I have missed?!

Banger answered 3/9, 2020 at 3:37 Comment(8)
That error message appears to be from Vue 3, not Vue 2.Bruch
Yes. You are right. :-)Banger
My point being that Vue-multiselect hasn't been migrated to Vue 3 yet.Bruch
Oh. Very sad. Then which one I can use?Banger
Vue 3 hasn't even been released yet, it's still in RC. Very few libraries have been migrated. If you need libraries now you'll need to use Vue 2.Bruch
I am confused about Vue version or Vue-Cli version?Banger
I am not using Vue3. It's in Vue 2.Banger
for future visitor you can try this... github.com/vueform/multiselectBanderole
E
0

i Don't know is it right or wrong but you can delete vue-performance extension..This is a workaround for me and then check.If it still remain you can tell me i will delete the answere....

Eavesdrop answered 3/9, 2020 at 3:52 Comment(3)
Ohh...Its just worked for me sometimes...Hope you will get your correct ans or solve your issueEavesdrop
I don't know what was wrong. I installed it. Now, No Problem.Banger
Glad to hear that!Eavesdrop
C
0

I reproduced the problem. If hooks are used as property instead of functions.

Bug generated:

const VerificaSezioniConfig = {
    delimiters:['[[',']]'],
    data(){
        return{
            sezioni:[1,2]
        }
    },
    mounted:{}
}

No Bug:

const VerificaSezioniConfig = {
    delimiters:['[[',']]'],
    data(){
        return{
            sezioni:[1,2]
        }
    },
    mounted(){}
}
Carlile answered 12/7, 2021 at 15:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.