react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

TypeError: Cannot read properties of null (reading 'props') at render3 (index.js:39:38)

Open capaj opened this issue 7 months ago • 1 comments

Describe the bug

TypeError: Cannot read properties of null (reading 'props')
    at render3 (index.js:39:38)
    at Object.toBlob (index.js:95:13)
    at usePDF.js:30:63
    at Queue.start (index.js:145:17)
    at Queue.<computed> [as splice] (index.js:59:12)
    at Array.queueDocumentRender (usePDF.js:29:19)
    at onChange (index.js:25:62)
    at Nl (reconciler-23.js:10:52648)
    at exports.unstable_runWithPriority (scheduler.development.js:288:16)
    at Ge (reconciler-23.js:10:5952)

I got "@react-pdf/renderer": "^4.3.0",

capaj avatar May 06 '25 10:05 capaj

It's not a bug. When you pass the data into React-PDF's View for rendering it in a PDF, the error indicates that either your data is invalid or the required object key is missing or undefined.

LinuxKunaL avatar May 11 '25 04:05 LinuxKunaL