diegomura / diegomura/react-pdf

toBlob throws an error with react-pdf elements (Svg, Defs)

Open
#2,644 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
16.8k
Forks
1.3k
Avg merge
5h 6m
Merged PRs (30d)
52

Description

**Describe the bug**
toBlob throws an error with some react-pdf elements (Svg, Defs)
Error: renderFn is not a function

**To Reproduce**
Next.js,
react-pdf version: 3.3.8

With Defs, toBlob throws an error, but if I delete it and add a standard fill color to the circle, it works correctly.









Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.