vue.draggable.next icon indicating copy to clipboard operation
vue.draggable.next copied to clipboard

TypeError: Cannot read properties of undefined (reading 'header')

Open IrinaLuminesk opened this issue 1 year ago • 9 comments
trafficstars

I currently getting this error on vue 3. This is my code image image

And this is the error show on my browser image

IrinaLuminesk avatar Jan 29 '24 06:01 IrinaLuminesk

Getting this too. And if you add the #header slot, you bump into other errors. It's because this.$scopedSlots is undefined, but I have no idea why. This happens only in very recent versions of Vue3. It didn't use to be like this before.

I'm on [email protected] and using Nuxt.

Interestingly enough, on Vue 3.4.15 with a default Vuetify setup, this library works with the same code.

vladfr avatar Feb 21 '24 23:02 vladfr

Getting the same error, but I'm not willing to install Vuetify :) Did you find another solution?

bblumenfelder avatar Mar 28 '24 21:03 bblumenfelder

package version: "vue": "^3.4.21", "vuedraggable": "^4.0.1"

code:

<draggable :list="myArray" item-key="name" ghost-class="ghost" @start="drag = true" @end="drag = false">
        <template #item="{ element }">
            <div class="list-group-item">{{ element.name }}</div>
        </template>
</draggable>

"vuedraggable": "^4.0.1" 这个版本后我这边正常, 没有出现这个错误了

zhelingwang avatar Apr 03 '24 08:04 zhelingwang

this still not work with "vuedraggable": "^4.0.1",

prashantnirgun avatar Apr 29 '24 13:04 prashantnirgun

Updating Vue to latest will probably fix this, as it fixed mine.

Lippiece avatar May 19 '24 18:05 Lippiece

I fixed it by shutting down dev server and then running npm run dev again. "vue": "^3.4.27", "vuedraggable": "^4.1.0"

ReljaMihajlovic avatar May 20 '24 12:05 ReljaMihajlovic

I fixed it by shutting down dev server and then running npm run dev again. "vue": "^3.4.27", "vuedraggable": "^4.1.0"

Same here!

emirrozerr avatar May 23 '24 11:05 emirrozerr