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]: Symbol(SidebarContext) not found. Component must be used within Sidebar #1017

Open
2 tasks
janniksohn opened this issue Jan 24, 2025 · 1 comment
Open
2 tasks
Labels
bug Something isn't working

Comments

@janniksohn
Copy link

janniksohn commented Jan 24, 2025

Reproduction

https://stackblitz.com/edit/shadcn-vue-sidebar?file=app.vue

Describe the bug

Like Described in the Comment: #882 (comment)
It occurs also when tying to import useSidebar

The open Boolean can also be retrieved via the SidebarProvider but this is still not intended behavior

System Info

Stackblitz:

  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @vueuse/core: ^12.5.0 => 12.5.0 
    nuxt: ^3.15.2 => 3.15.2 
    radix-vue: ^1.9.12 => 1.9.12 
    shadcn-nuxt: ^0.11.3 => 0.11.3

My System:

  System:
    OS: Linux 5.15 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i5-13600KF
    Memory: 10.03 GB / 15.54 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v20.11.1/bin/yarn
    npm: 10.5.2 - ~/.nvm/versions/node/v20.11.1/bin/npm
    pnpm: 10.0.0 - ~/.local/share/pnpm/pnpm
    bun: 1.1.38 - ~/.nvm/versions/node/v20.11.1/bin/bun
  npmPackages:
    @vueuse/core: ^12.5.0 => 12.5.0 
    nuxt: ^3.15.2 => 3.15.2 
    radix-vue: ^1.9.12 => 1.9.12 
    shadcn-nuxt: ^0.11.3 => 0.11.3 
    vue: ^3.5.13 => 3.5.13

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@janniksohn janniksohn added the bug Something isn't working label Jan 24, 2025
@janniksohn
Copy link
Author

janniksohn commented Jan 24, 2025

See this Issue: #882

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