Closed mcrampon closed 7 months ago
Cannot reproduce. Please provide a minimal reproduction to reopen the issue. Thanks.
Here's a more detailed reproduction:
<!-- slotter.vue -->
<template>
<slot name="body" />
</template>
<!-- slotted.vue -->
<template>
<slotter>
<template v-if="true" #body>
Something
</template>
<template v-else #body>
Something else
</template>
</slotter>
</template>
<script>
import Slotter from './slotter.vue';
export default {
components: {
Slotter
}
};
</script>
✘ [ERROR] v-else/v-else-if has no adjacent v-if or v-else-if. [plugin vue]
components/slotted.vue:7:0:
7 │
╵ ^
Still cannot reproduce. Please at least submit a reproduction repo (GitHub repo) that within the basic setup.
Plus, looks like the errors are not caused by unplugin-vue
itself, could be caused by Vue Compiler.
Describe the bug
When using the
v-else
directive ontemplate
, I get an error:Reproduction
esbuild@0.20.1 + unplugin-vue@5.0.3 + vue@3.4.19
System Info
Used Package Manager
yarn
Validations