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

[Bug]: Sidebar components rely on other UI components that are not installed #878

Open
2 tasks
Soviut opened this issue Nov 10, 2024 · 0 comments
Open
2 tasks
Labels
bug Something isn't working

Comments

@Soviut
Copy link

Soviut commented Nov 10, 2024

Reproduction

https://stackblitz.com/edit/dkh1ug?file=src%2FApp.vue

Describe the bug

If you install the Sidebar components

npx shadcn-vue@latest add sidebar

Then add the sidebar to your HTML

<script setup lang="ts">
import { RouterView } from 'vue-router'
import { Sidebar } from '@/components/ui/sidebar'
</script>

<template>
  <article>
    <Sidebar>x</Sidebar>

    <main>
      <RouterView />
    </main>
  </article>
</template>

The following error is thrown because SidebarSeparator import Separator

image

And SidebarSkeleton imports Skeleton

image

And Sheet

image

And Input

image

And Tooltip

image

Installing the dependent components does fix the issue, however, they should be installed along with the sidebar if they're required.

System Info

System:
    OS: Linux 5.15 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13900K
    Memory: 18.39 GB / 31.23 GB
    Container: Yes
    Shell: 5.2.21 - /bin/bash
  Binaries:
    Node: 20.18.0 - ~/.nvm/versions/node/v20.18.0/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v20.18.0/bin/npm
  npmPackages:
    @vueuse/core: ^11.2.0 => 11.2.0

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@Soviut Soviut added the bug Something isn't working label Nov 10, 2024
@Soviut Soviut changed the title [Bug]: SidebarSeparator relies on Separator but does not install it [Bug]: Sidebar components rely on other UI components that are not installed Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant