Skip to content

fix: install missing html-to-image dependency#608

Merged
Aditya948351 merged 1 commit into
devpathindcommunity-india:masterfrom
Niteshagarwal01:fix/html-to-image-dependency
Jun 14, 2026
Merged

fix: install missing html-to-image dependency#608
Aditya948351 merged 1 commit into
devpathindcommunity-india:masterfrom
Niteshagarwal01:fix/html-to-image-dependency

Conversation

@Niteshagarwal01

Copy link
Copy Markdown
Contributor

PR: Fix Missing html-to-image Dependency

Closes #605

Title

fix: install missing html-to-image dependency for DevCard exports

Description

Issue:
The newly introduced DevCard component uses the toPng function from html-to-image to generate a downloadable image of the developer's profile card. However, this library was inadvertently left out of the project's dependencies in package.json. This omission triggers a strict TypeScript compilation error (error TS2307: Cannot find module 'html-to-image') and fundamentally breaks the Next.js production build (npm run build).

Fix:

  • Installed the html-to-image package.
  • This successfully restores the ability to compile the application and resolves the Module not found error during the static build generation phase.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Testing

  • Ran npm run build locally and verified that the production build succeeds.
  • Checked out DevCard locally and confirmed that clicking the export button securely downloads a PNG of the card.

@github-actions github-actions Bot added gssoc26 This is a official GirlScript Summer of Code label. level:intermediate Intermediate level issues type:bug labels Jun 13, 2026
@Aditya948351 Aditya948351 added the gssoc:approved give 50+ base points label Jun 14, 2026
@Aditya948351 Aditya948351 self-requested a review June 14, 2026 11:32
@Aditya948351 Aditya948351 merged commit c6d2cc5 into devpathindcommunity-india:master Jun 14, 2026
3 checks passed
@Aditya948351 Aditya948351 added level:beginner Beginner level issues and removed level:intermediate Intermediate level issues labels Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved give 50+ base points gssoc26 This is a official GirlScript Summer of Code label. level:beginner Beginner level issues type:bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants