Skip to content

chore(deps): install missing shadcn/ui and test dependencies to fix TS build#1791

Open
ArshVermaGit wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
ArshVermaGit:main_4
Open

chore(deps): install missing shadcn/ui and test dependencies to fix TS build#1791
ArshVermaGit wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
ArshVermaGit:main_4

Conversation

@ArshVermaGit
Copy link
Copy Markdown
Contributor

Description

This PR resolves critical TypeScript build failures caused by missing node modules.

Previously, running npm run type-check (which runs in CI and during local builds) threw several TS2307 (Cannot find module) and TS2339 (Property does not exist) errors. These occurred because foundational packages used by the shadcn/ui components (like badge.tsx and button.tsx) and the test suite were not present in package.json.

Resolved Issue

Resolves #1790

Changes Made

  • Dependency Installation: Explicitly installed the missing required packages:
    • class-variance-authority (for component variant styling)
    • tailwind-merge & clsx (for dynamic class name utilities in UI components)
    • idb-keyval (required by test/ContributionGraph.test.ts)
  • Lockfile Update: Updated package.json and package-lock.json accordingly.

Impact

  • Developer Experience (DX) & CI: The local build environment and continuous integration pipelines are restored to a healthy state. Developers will no longer face spurious TypeScript errors when working on UI components.

Testing

  • Ran npm run type-check locally.
  • Confirmed that all class-variance-authority and tailwind-merge type errors have been completely eliminated (0 errors output).

@vercel
Copy link
Copy Markdown

vercel Bot commented May 31, 2026

@ArshVermaGit is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:design GSSoC type bonus: UI/design (+10 pts) type:devops GSSoC type bonus: devops (+15 pts) type:testing GSSoC type bonus: tests (+10 pts) labels May 31, 2026
@github-actions
Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

Copy link
Copy Markdown
Contributor Author

@ArshVermaGit ArshVermaGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Priyanshu-byte-coder ! Issue #1790 has been resolved. Please review the PR and merge it under GSSoC. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:design GSSoC type bonus: UI/design (+10 pts) type:devops GSSoC type bonus: devops (+15 pts) type:testing GSSoC type bonus: tests (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: TypeScript build failing due to missing shadcn/ui dependencies

1 participant