Skip to content

[BUG] Missing html-to-image Dependency (Build Blocker) #605

@Niteshagarwal01

Description

@Niteshagarwal01

🚨 Missing html-to-image Dependency (Build Blocker)

Issue Description

In src/components/profile/DevCard.tsx, the toPng function is imported from the html-to-image library to allow users to export their developer cards as images:

import { toPng } from 'html-to-image';

However, the html-to-image package is completely absent from the package.json dependencies.

Impact

This omission triggers a critical TypeScript compiler error (TS2307: Cannot find module 'html-to-image') and subsequently crashes the entire Next.js production build process (npm run build) with a Module not found error. Deployments to production will fail until this is resolved.

Proposed Fix

Install the missing library via the package manager (npm install html-to-image) and verify the build.

Suggested Labels

  • bug
  • critical
  • build-failure

Metadata

Metadata

Labels

gssoc26This is a official GirlScript Summer of Code label.level:intermediateIntermediate level issuestype:bug

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions