multiselect icon indicating copy to clipboard operation
multiselect copied to clipboard

[Vue warn]: Error in setup: "TypeError: getCurrentInstance() is null"

Open dejury opened this issue 2 years ago • 2 comments

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"
Schermafbeelding 2022-07-12 om 16 58 47

dejury avatar Jul 12 '22 15:07 dejury

<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>

dejury avatar Jul 12 '22 15:07 dejury

Has this issue solved?

minseolee avatar Aug 22 '22 04:08 minseolee

Feel free reopen with a reproducible example if still relevant.

adamberecz avatar Dec 21 '22 12:12 adamberecz