Open Jarrodsz opened 8 months ago
basically this module import is failing:
import {render} from "@faire/mjml-react/utils/render";
Hi @Jarrodsz,
Unfortunately I have not used remix v2 with mjml-react, so I don't know the best way to fix this. I would need to know more about your setup to help debug the problem.
In general though, the render function in mjml-react is just one way of rendering mjml-react to html and isn't necessarily the best way for every application. It should be easy to implement your own. Under the hood it is just ReactDOMServer.renderToStaticMarkup
to convert the react mjml to mjml, mjml2html
to convert the mjml to html, and a minifier to minify the html (this is optional, and any minifier should work).
In a new remix v2 project im getting a
the file exists.
I suspect the new remix v2 esm like stuff is breaking this.
What is the best advice to resolve this?