Open Dru1DD opened 8 months ago
Try to add "use client"
in the beginning of the file.
Try to add
"use client"
in the beginning of the file.
Yeah, you're right. But I have told about api/route. I generate pdf on server side with package react-pdf/renderer and method renderToStream - works only on server ( express js ) or api/route. And there it doesn't work.
When I generate Pdf on api/route in Next Js 13 I got an error that isn't suitable as server component.
It seems, that package didn't compared for app routes