Hi thanks for the tutorial. It's really helpfull. But I have an issue. I am using this with next js 15 while importing I am getting an error like this import { Document, } from "@react-pdf/renderer"; The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@react-pdf/renderer")' call instead. To convert this file to an ECMAScript module, add the field `"type": "module"` to '/home/aswanthraveendranek/UPDOT/karma/apps/web/package.json' I tried importing dynamically but then I am getting error like props is not a function and some thing else. I am not using PDFViewer Just created the Document and Downloading it using PdfDownloadLink Do you have any solution for this?
You covered a good shunk of usecases, nice job
Pretty cool stuff, thanks alot!
The restriction of react pdf is it cannot be generated in mobile browser, I prefer jspdf instead
Terminal setup tutorial pleaseee
Great idea, hopefully soon.
great video🎉
Hi thanks for the tutorial. It's really helpfull.
But I have an issue. I am using this with next js 15 while importing I am getting an error like this
import {
Document,
} from "@react-pdf/renderer";
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@react-pdf/renderer")' call instead.
To convert this file to an ECMAScript module, add the field `"type": "module"` to '/home/aswanthraveendranek/UPDOT/karma/apps/web/package.json'
I tried importing dynamically but then I am getting error like props is not a function and some thing else.
I am not using PDFViewer Just created the Document and Downloading it using PdfDownloadLink
Do you have any solution for this?
On here i want just show invoice not others Settings... Like background gray,pdf other option...