render
function not working in nextjs 14
#1118
-
I'm using here is the code: ![]() is anybody facing the same issue like me? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Afaik this error is thrown due to nextjs overriding the usual implementation for renderToStaticMarkup. What I think is happening is that renderToStaticMarkup and other sync methods like this one are going to be deprecated and Next is already ready for that. I think we will just have |
Beta Was this translation helpful? Give feedback.
-
it will show the same error if i directly render the Email Component in the |
Beta Was this translation helpful? Give feedback.
how about with something like:
TLDR: Use this alongside upgrading
@react-email/render
to canary that improved the renderAsync function and import from it to make sure it uses the proper version.