shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
63.19k stars 3.56k forks source link

[bug]: Missing TooltipProvider in dashboard-7 block #3465

Open alieldeba opened 2 months ago

alieldeba commented 2 months ago

Describe the bug

When I copy/paste the code of this block https://ui.shadcn.com/blocks#dashboard-07 in my nextjs14 app it gives me this error Error: Missing TooltipProvider

I solved it by going to the documentation and wrapped the Tooltip component with TooltipProvider

Affected component/components

Tooltip

How to reproduce

  1. Go to https://ui.shadcn.com/blocks#dashboard-07
  2. copy code of the block
  3. run your application
  4. you now should see this error Error: Missing TooltipProvider

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

Nextjs14
Edge latest version
Shadcn/ui latest version of tooltip component

Before submitting

ruru-m07 commented 2 months ago

image

Just use TooltipProvider in the app layout

now you can close this issue