Skip to content
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

Fix @react-pdf/renderer not working in RSC #61317

Merged
merged 2 commits into from
Feb 4, 2024
Merged

Fix @react-pdf/renderer not working in RSC #61317

merged 2 commits into from
Feb 4, 2024

Conversation

wojtekmaj
Copy link
Contributor

What?

Fixes @react-pdf/renderer not working in RSC.

Why?

Next.js RSC version of React does not include features necessary for @react-pdf/renderer to work.

How?

Adding @react-pdf/renderer to serverComponentsExternalPackages by default.

Fixes #61313

Copy link
Member

@ijjk ijjk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ijjk ijjk enabled auto-merge (squash) February 4, 2024 21:21
@ijjk ijjk merged commit f7fcd2b into vercel:canary Feb 4, 2024
61 of 66 checks passed
@wojtekmaj wojtekmaj deleted the patch-2 branch February 4, 2024 22:23
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@react-pdf/renderer doesn't work when used in React Server Components
3 participants