-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
unable to compile this in production mode because of renderToStaticMarkup #116
Comments
I encountered the same error when running inside Next.js (latest version). After adding
I have tried to work with |
I created an api that separates renderToStaticMarkUp from the next js main codebase. Now my app works fine and calls an api if it needs to convert json to html |
Hi @alvindivina08, is it possible to share some details on how to resolve this issue? Thanks a lot! ❤️ |
I have it in my repo and deployed it using vercel. Feel free to take a look and copy it |
Thanks a lot! |
I remember us having this issue in the early days of the project and we fixed it in this PR https://github.com/usewaypoint/email-builder-js/pull/91/files that uses react-dom/server as a peer dependency and wraps with this function https://github.com/usewaypoint/email-builder-js/blob/1245bdac807e0989babcd4b2db1bc3a2a3bbf376/packages/email-builder/src/renderers/renderToStaticMarkup.tsx That PR seemed to solved this issue for a couple of people. |
First of all, thank you for making this open source!
is there any alternative to renderToStaticMarkup for NextJS?
I keep getting this error when I'm trying to compile it to a production build using NextJs
The text was updated successfully, but these errors were encountered: