Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it work with Vue 3? #151

Open
tkohlmannhuber opened this issue Nov 3, 2020 · 5 comments
Open

Does it work with Vue 3? #151

tkohlmannhuber opened this issue Nov 3, 2020 · 5 comments

Comments

@tkohlmannhuber
Copy link

tkohlmannhuber commented Nov 3, 2020

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

@Uhliber
Copy link

Uhliber commented Dec 29, 2020

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.

@allfreelancers
Copy link

Any ideas to use plugin with vue 3?

@rodrigogs
Copy link

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

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

@renatoalmeida49
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants