We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When using PDFDownloadLink in React 19 with TypeScript (Next.js 15.1.3, TS 5.7.2), an error occurs stating:
PDFDownloadLink
"Type '({ loading }: { loading: boolean; }) => React.JSX.Element' is not assignable to type 'ReactNode | ReactElement<BlobProviderParams, string | JSXElementConstructor>'."
This issue happens when using the render prop inside PDFDownloadLink.
To Reproduce Steps to reproduce the behavior:
@react-pdf/renderer
Here is a Replit example reproducing the issue: 🔗 Reproduction Link
Expected behavior The PDFDownloadLink should work correctly without TypeScript errors. The loading state should also work as expected.
Screenshots If applicable, attach screenshots showing the error message.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When using
PDFDownloadLink
in React 19 with TypeScript (Next.js 15.1.3, TS 5.7.2), an error occurs stating:This issue happens when using the render prop inside
PDFDownloadLink
.To Reproduce
Steps to reproduce the behavior:
@react-pdf/renderer
and usePDFDownloadLink
.PDFDownloadLink
.Here is a Replit example reproducing the issue:
🔗 Reproduction Link
Expected behavior
The
PDFDownloadLink
should work correctly without TypeScript errors. The loading state should also work as expected.Screenshots
If applicable, attach screenshots showing the error message.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: