New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught (in promise) TypeError: Cannot read property 'value' of undefined #3
Comments
Please send the Multiselect options you are using. Are you using Vue 2 or 3? |
Strange, I'm not able to reproduce this, it's working fine with Vue 3 on my end. Try creating a new component containing only this: <template>
<div>
<Multiselect v-model="mVal" :options="options" />
</div>
</template>
<script>
import Multiselect from '@vueform/multiselect'
import '@vueform/multiselect/themes/default.css'
export default {
components: {
Multiselect,
},
data() {
return {
mVal: '',
options: ['Batman', 'Robin', 'Joker']
}
},
}
</script> Does it still throws the errors? |
Yes, I tried creating a new component like suggested, but it still throws the same error. I am not sure how to find the error on my side, because when I remove Multiselect everything seems to be working fine. |
Couple of ideas:
|
Absolutely no clue why, but when I removed node_modules and package-lock.json, then did npm install, worked!!! Thank you for your time, really appreciate it. |
Glad it worked! |
I've followed all steps exactly as instructed, still getting this error. When I installed Multiselect a couple of days back I didn't get such errors. Today installed a fresh copy for my project and it throws this error.
The text was updated successfully, but these errors were encountered: