Preview Server Using Server Components? #2262
Closed
chris-orgorg
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
I guess I should be using the component anyway, but I ran into this issue for other components as well. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hmm it seems like the react.email component has the same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Nevermind, user error. I was not passing in valid children. The component works, however it's still pretty hard to debug. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Is there any reason for the preview server to render emails using server components? Sometimes I get the error:
Error: Only plain objects, and a few built-ins, can be passed to Client Components from Server Components.
Background
I'm using a Markdown library to generate HTML and it won't work in my email template since it can't be serialized as a ClientComponent.
Proposal
We could update the preview server to use server components, I'm happy to contribute.
Beta Was this translation helpful? Give feedback.
All reactions