Skip to content

[bug]: Dashboard-01 Block fails with errors after import into Vite + React + TypeScript #8679

@kangchainx

Description

@kangchainx

Describe the bug

I followed the official guide (https://ui.shadcn.com/blocks#dashboard-01
) to import the Dashboard-01 block into my Vite + React + TypeScript project and used the example page.tsx. After starting the app, the build/runtime shows multiple errors exactly as in my attached screenshot. Please refer to the screenshot for the specific error messages.

Image Image

Affected component/components

Dashboard-01

How to reproduce

  1. npm create vite@latest
  2. npm install tailwindcss @tailwindcss/vite
  3. npm install -D @types/node
  4. npx shadcn@latest init
  5. npx shadcn@latest add dashboard-01

Codesandbox/StackBlitz link

No response

Logs

System Info

1. React: 19.1.1
2. TypeScript: 5.9.3
3. Vite: 7.1.7
4. Shadcn/UI: latest

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions