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

Adding slots to components breaks examples #11

Open
ybonjour opened this issue Dec 2, 2024 · 0 comments
Open

Adding slots to components breaks examples #11

ybonjour opened this issue Dec 2, 2024 · 0 comments

Comments

@ybonjour
Copy link
Member

ybonjour commented Dec 2, 2024

Introducing a component with a slot and adding an example for it breaks all examples.

Reproduction:

  1. Create a new project using vue-starter.
  2. Add a component src/application/HelloWorld.vue with a slot
<template>
  <slot />
</template>
  1. Add an example src/applicationHelloWorld.example.vue for this component:
<script setup lang="ts">
import HeeloWorld from '@/application/HeeloWorld.vue'
</script>
<template>
  <HeeloWorld>
    <p>Hello World</p>
  </HeeloWorld>
</template>
  1. Start development server npm run dev
  2. Open the examples.
  3. The HelloWorld example as well as the IconView example beak.

Used version of vite-plutin-vue-examples: 1.0.0
Used commit of vue-starter: 68c0df0

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

1 participant