-
Notifications
You must be signed in to change notification settings - Fork 657
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
TypeError: Cannot convert object to primitive value with NextJS. #1586
Comments
I don't think this is an issue with render, it must be something on how you are calling it wrong somehow, can't say without a reproduction. Try trimming down the code until you have something minimal that still has the issue and share it here. Without a reproduction, I can't tell exactly what the issue here is. |
I can replicate it.
The error is coming with |
No error on my side when using that in an email template. Please share a full repository so that I can reproduce properly. |
I have the same problem 😵💫 I have this email template called
I’m using it with Resend
When I compile the Next.js application, I get this error: The error occurs since version 0.0.23 |
Is there any solution with this? Also found in @react-email/components version 0.025, react-email version 3.0.1, and NextJS 14.2.9 |
For me it was happening, when i had Tailwind component over Html element
Solution was to Put Tailwind over Body
Problem that could be in this post
Is that Head is But thats only idea and I have not tried it. But the first thing I mentioned happed to me and I resolved it with moving the Tailwind as I said previously. But that generated new error, and that you cant use media query in classes in body. I havent resolved that issue, I just dont use media query classes. So for example if you use Hope that it will help |
Describe the Bug
I try to use react email render function on nextjs-
When I am trying to build the application, every time it gives following error-
Here is
ContactTemplate
component-Which package is affected (leave empty if unsure)
@react-email/render
Link to the code that reproduces this issue
Sorry.
To Reproduce
I am ensure that the error is comming for render function, If remove and try to build the application, it do not gives any error.
Expected Behavior
Somethings issues on render function
What's your node version? (if relevant)
No response
The text was updated successfully, but these errors were encountered: