Skip to content

Vue 3 slot deprecation #1054

Answered by markacianfrani
tdinino asked this question in Q&A
Discussion options

You must be logged in to vote

We recommend disabling that eslint rule for now. https://astro-components.netlify.app/?path=/story/astro-uxds-welcome-vue--page#disable-eslint-rule

What happened was Vue 2 had a slot attribute but in Vue 3 they changed it to v-slot because slot is part of the HTML spec and it was conflicting. In v2.6 they added this new eslint rule as part of their migration effort to help people moving from v2 to v3.

The reason you're getting the warning is because the eslint rule can't tell that you're using a web component, it thinks it's a Vue component. So you should be safe to just turn off the rule or ignore the warning.

One exception being if you're currently undergoing a migration from v2 -> v3. …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by micahjones13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants