Closed luokelong closed 3 days ago
Same here.
I have the same issue using the PDFDownloadLink component.
Has any official paid attention to this issue?
Same here with "@react-pdf/renderer": "3.4.4", "next": "14.2.12",
If anyone is having this issue, there are two temporary fixes:
next@14.2.8
and to make it work for nowThese are just patches to make it work for now though
The issue is related to a regression in a next.js version or a bug in this package?
Same here. Downgrade to next@14.2.8 helped, thanks @typesafeui . Hopefully someone fixes it
I also found that importing this way works in "next": "14.2.16"
:
'use client'
import {Document, Page, View, Text} from "@react-pdf/renderer/lib/react-pdf.browser";
If you are using next js you need use client
. Server side PDF generation is not supported
I also found that importing this way works in
"next": "14.2.16"
:'use client' import {Document, Page, View, Text} from "@react-pdf/renderer/lib/react-pdf.browser";
Thanks, this worked for me, and it was easier than downgrading to next@14.2.8, as that version was not compatible with the lastest version of next-intl
"@react-pdf/renderer": "^4.0.0", "next": "14.2.13",