multiselect
multiselect copied to clipboard
[Vue warn]: Error in setup: "TypeError: getCurrentInstance() is null"
Version
- Vue version: 2.7.4
Description
I've updated to the latest version with 2.7 compatibility. But somehow, this error keeps occurring. Seems to have something to do with the composition api.
[Vue warn]: Error in setup: "TypeError: getCurrentInstance() is null"
<template>
<div>
<Multiselect
v-model="pietje"
:options="['pietje','pizza']"
/>
</div>
</template>
<script>
import Multiselect from '@vueform/multiselect/dist/multiselect.vue2.js'
import '@vueform/multiselect/themes/default.css';
export default {
components: {
Multiselect,
},
data() {
return {
pietje: null,
dataOptions: []
}
}
}
</script>
Has this issue solved?
Feel free reopen with a reproducible example if still relevant.