Jexordexan / vue-slicksort

A set of vue mixins to turn any list into an animated, touch-friendly, sortable list ✌️
http://vue-slicksort.netlify.app
Other
1.48k stars 157 forks source link

vue3: Uncaught (in promise) TypeError: _b.call is not a function #147

Open dy opened 3 years ago

dy commented 3 years ago

Following the docs:

  <SlickList axis="y" v-model:list="formData.sections">
    <SlickItem v-for="(section, sid) in formData.sections" :key="section.id" :index="sid">
      {{ section }}
    </SlickItem>
  </SlickList>

Getting the error from the title: Uncaught (in promise) TypeError: _b.call is not a function at Proxy.render (vue-slicksort.umd.js:1110)

entioentio commented 3 years ago

I experience it as well, I think it has to do with the fact that I'm using Vue3 migration build. However, even if I set

export default {
    ...
    compatConfig: {
        MODE: 3
    },
    ...
}

in the component where SlickList component is used, it still errors out.

jakedolan commented 2 years ago

For others using the Vue3 migration build, I was able to resolve the issue reported above by setting the compatConfig mode to 3 in the SlickList, SlickItem and DragHandle components in a fork of the v2.0.0-alpha.5 branch of this library. Not ideal, but handy while using the migration build.