-
The latest version of this package uses pdfjs-dist v2.16.105. this causes problems when needing types for PDFDocumentProxy, as react-pdf doesn't export the types it uses from pdfjs-dist. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
What you're missing is that the most recent version of React-PDF was NOT native TypeScript and external, incorrect TS types are likely used. On main, we currently have unreleased version 7 which IS native TypeScript, so this problem should not occur once it's released. |
Beta Was this translation helpful? Give feedback.
What you're missing is that the most recent version of React-PDF was NOT native TypeScript and external, incorrect TS types are likely used. On main, we currently have unreleased version 7 which IS native TypeScript, so this problem should not occur once it's released.