Skip to content

[bug]: Build fails with TS2307: Cannot find module '@/components/ui/card' #11091

Description

@hanbit10

Describe the bug

Description

The project fails to build because TypeScript cannot resolve shadcn/ui component imports.

Error

src/pages/ActivityLog.tsx(5,59): error TS2307: Cannot find module '@/components/ui/card' or its corresponding type declarations.

## Solving the problem
I solved the problem Capitalizing the name in the file as Card.tsx

### Affected component/components

Card, Sidebar

### How to reproduce

Clone the repository.

Install dependencies:

npm install

Run:

npm run build
Observe the TypeScript errors.

### Codesandbox/StackBlitz link

_No response_

### Logs

```bash

System Info

OS: Windows 11
Node.js: v22.x.x
npm: 10.x.x
Vite: 7.x.x
TypeScript: 5.x.x
React: 19.x.x
Deployment: Vercel
Browser: N/A (build-time issue)

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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions