-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for React 19 #2912
Comments
This PR updates the package for react 19 (#2783). You could temporarily use the forked package to get it working now |
Thanks I will try it. |
I have forked your repo. But for some reason the cloning process timeouts before completing. |
@wkigenyi The easiest way would be to just install |
Thank you. |
Does |
Yes it does |
Have any of you guys run into this issue? @ck-euan @wkigenyi details: Error: |
@pedro757 Yeah I just ran into that issue. I was able to solve it by patching Basically I just copied all of the changes made in #2783 but I updated the versions to the following: Specifically, the exact steps I took to do this were:
It then started to work for me. I really hope react 19 stable release happens soon 😅 |
No, it's doesn't work with ⨯ TypeError: Cannot read properties of undefined (reading 'S')
at module.exports (.next/server/chunks/08b5e_@alexandernanberg_react-pdf-renderer_lib_react-pdf_1362ba.js:14494:67)
at createRenderer (.next/server/chunks/08b5e_@alexandernanberg_react-pdf-renderer_lib_react-pdf_1362ba.js:14980:12)
at pdf (/.next/server/chunks/08b5e_@alexandernanberg_react-pdf-renderer_lib_react-pdf_1362ba.js:15180:28)
at renderToStream (/.next/server/chunks/08b5e_@alexandernanberg_react-pdf-renderer_lib_react-pdf_1362ba.js:15311:22) |
It worked for me and still works. How did you install yours? |
@wkigenyi is there any chance you could share your package.json and lockfile? |
This good pointer. I have remembered that I actually have 2 packages "@alexandernanberg/react-pdf-renderer": "4.0.0-canary-3" and "@react-pdf/renderer": "^4.0.0". I imported the PDFDownloadLink from "@alexander..." the components and other functions from "@react-pdf/renderer" |
Installed using |
Thank you @ck-euan !, That works, good workaround. |
@sam3d did this work for you ? |
@ck-euan I sometimes run into this error on re-rendering |
Hi, I have decided to wait for stable react 19 release because what I thought was working is actually not working as expected |
ck-euan already helped us to workaround this, just read and follow this #2912 (comment) |
@pedro757 the workaround doesn’t work for next 15 and react 19. Server rendering. I used renderToStream |
@jpainam I am using the workaround in my Next 15 React 19 project with renderToStream so it should work. The chances are you just need different versions of react / react-dom / react-reconciler. That being said, if possible it'd probably be better to wait for the stable release |
Let's keep the conversation in a single thread. Closing in favor of #2756 |
Hi,
Thanks for the wonderful library. It works well with <= React v18. Is there a plan to support React 19?
The text was updated successfully, but these errors were encountered: