You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PDF Generation Error: Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7B%24%24typeof%2C%20type%2C%20key%2C%20props%2C%20_owner%2C%20_store%7D&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at renderToBuffer (src/app/api/pdf/route.tsx:18:42)
16 | try {
17 | // Create PDF document
> 18 | const pdfStream = await renderToBuffer(
| ^
19 | <PDF privateInformation={privateInformation} />,
20 | );
21 |
GET /api/pdf 500 in 112ms
Describe the bug
Using Node APIs, like
renderToBuffer
is not working in NextJS App Router route.For example, given the method
generatePdf
:When called inside a route, such as
app/generate-pdf/route.tsx
, I see the following error:How can I get around this?
I'm using next 15.1.6 and @react-pdf/renderer 4.1.6
The text was updated successfully, but these errors were encountered: