Skip to content

PNG export fails silently on error #5

Description

@Emp1500

What happened?

All three PNG-export call sites — components/share/ShareView.tsx, app/(protected)/editor/page.tsx,
▎ app/(protected)/editor/[id]/page.tsx — call toPng(panelRef.current).then(url => { ... }) with no .catch(). If html-to-image rejects (a real failure mode — canvas tainting, browser quirks), the click silently does nothing.

Code snippet (if parser-related)


Environment

No response

Where did this happen?

Live site (code2flow-one.vercel.app)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions