vue-slick-carousel icon indicating copy to clipboard operation
vue-slick-carousel copied to clipboard

Does it work with Vue 3?

Open tkohlmannhuber opened this issue 5 years ago • 5 comments
trafficstars

i tried to do the basic stuff like the get started snipped but there is always an Error in console and some warnings. Should it work with vue 3 too?

[Vue warn]: beforeDestroy has been renamed to beforeUnmount.

[Vue warn]: Property "$scopedSlots" was accessed during render but is not defined on instance.

[Vue warn]: Unhandled error during execution of render function

Uncaught TypeError: Cannot read property 'prevArrow' of undefined

tkohlmannhuber avatar Nov 03 '20 21:11 tkohlmannhuber

any update with this? i'm planning to use this component with Vue 3.

Edit: it seems that it's not compatible with Vue 3 yet. i get the same error.

Uhliber avatar Dec 29 '20 06:12 Uhliber

Any ideas to use plugin with vue 3?

allfreelancers avatar Aug 12 '21 09:08 allfreelancers

Wow, almost 2 years and no answer. Not even a "not possible".

$scopedSlots will be there for many, many legacy projects running Vue 2 and the lack of information about this situation prevents many people from migrating.

Given that, how can I migrate such code to Vue 3?

template(v-for='(_, slot) of $scopedSlots' v-slot:[slot]='scope')
  slot(:name='slot' v-bind='scope')

rodrigogs avatar Jul 25 '22 16:07 rodrigogs

Turns out that you can just replace $scopedSlots for $slots as mentioned here: https://www.vuemastery.com/blog/migration/

rodrigogs avatar Jul 27 '22 01:07 rodrigogs

Turns out that you can just replace $scopedSlots for $slots as mentioned here: https://www.vuemastery.com/blog/migration/

Can you please provide an example on how to do that?

renatoalmeida49 avatar Mar 22 '23 12:03 renatoalmeida49