-
Since upgrading to the newest version I have the following error in my typescript next js app:
This is my code to show the pdf:
Can please someone help me how to fix this error? Before updating the code worked perfectly. Seems like I'm not the only one having this issue: https://stackoverflow.com/questions/76796240/named-export-pdfdatarangetransport-not-found-while-using-react-pdf-in-next-js?newreg=704b67926da2412d96aa0144a5a69bd6 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yeah, until 7.3.0 React-PDF was not supporting ESM modules natively. It now does, but it comes with some unexpected problems with strictness (which, when resolved, will only benefit everyone). Definitely not your fault - will look into it as soon as possible. Thanks for the heads up. |
Beta Was this translation helpful? Give feedback.
Yeah, until 7.3.0 React-PDF was not supporting ESM modules natively. It now does, but it comes with some unexpected problems with strictness (which, when resolved, will only benefit everyone).
Definitely not your fault - will look into it as soon as possible. Thanks for the heads up.