radix-vue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
3.53k stars 204 forks source link

[Bug]: use TooltipProvider in Blocks/Dashboard03,05,06,07 #561

Closed DongHY1 closed 1 month ago

DongHY1 commented 1 month ago

Reproduction

https://stackblitz.com/~/github.com/DongHY1/shadcnvue-blocks-dashboard-tooltip-bug

Describe the bug

steps to reproduce:

  1. enter the project.
  2. open the console.
  3. the error is as follows:
Uncaught (in promise) Error: Injection `Symbol(TooltipProviderContext)` not found. Component must be used within `TooltipProvider`
    at index.js:12:11
    at setup (index.js:17784:15)
    at callWithErrorHandling (runtime-core.esm-bundler.js:195:19)
    at setupStatefulComponent (runtime-core.esm-bundler.js:7630:25)
    at setupComponent (runtime-core.esm-bundler.js:7591:36)
    at mountComponent (runtime-core.esm-bundler.js:5917:7)
    at processComponent (runtime-core.esm-bundler.js:5883:9)
    at patch (runtime-core.esm-bundler.js:5351:11)
    at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:6027:11)
    at ReactiveEffect.run (reactivity.esm-bundler.js:177:19)

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-1260P
    Memory: 11.82 GB / 15.47 GB
    Container: Yes
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
    Yarn: 1.22.19 - ~/.local/share/pnpm/yarn
    npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
    pnpm: 9.1.1 - ~/.local/share/pnpm/pnpm
    bun: 1.1.4 - ~/.nvm/versions/node/v18.17.0/bin/bun

Contributes