-
Notifications
You must be signed in to change notification settings - Fork 220
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
Example from readme not working #88
Comments
+1 |
Hi @erikmeliska and @ljacho, thanks for reporting! Sorry for the confusion – you're right, it turns out we were referencing the incorrect method name in the docs. This has been fixed in #89 and you can see the latest here: https://github.com/usewaypoint/email-builder-js?tab=readme-ov-file#sending-through-nodemailer |
Thanks for reply! |
We are investigating the issue with server side rendering. Out of curiosity, are you using this within NextJS? |
Tried both, nextjs, and raw node |
Thanks @erikmeliska. I was able to reproduce your issue and we are working on a fix that should be released within the next week. |
We just released version 0.0.4 of @usewaypoint/email-builder which adds react-dom as a peer dependency and fixed this issue in some environments. |
Hey guys, I'm using this method to integrate it with the emails generated via this builder which works fine for me, this method does not depend on
Then read the
And the mail options as follow:
then send using:
|
Thanks @HadiAlMarzooq, |
Guys, help me out here, I did all, possible and impossible, and I still can't make it work on node.
import { renderToStaticMarkup } from '@usewaypoint/email-builder';
const SIMPLE = {}
const html = renderToStaticMarkup(SIMPLE, {
rootBlockId: 'root'
});
console.log(html)
I get errors about
So I add "type": "module" to package.json, no the error is:
So I do as suggested in the error message: Now I get
Going in circles.. Install babel and try to compile it instead of changing type. So I go to approach 3: Install typescript Here is my odyssey trying to get some help from the artificial brain, if someone is interested: :D So, can somebody show me how to make this work in the simplest environment (ideally only with js)? Thank you. |
@cohitre , @erikmeliska I have tried several options as well, ended up creating the simplest possible showcase using TS: email-builder-test unfortunately it seems that lib is not build like it supposed to be and it doesn't work |
Hi there,
I've been trying to integrate the renderHtmlDocument method from your repository into my project but haven't had any luck. It appears that this method isn’t actually available in the repository. I might be overlooking something, but I couldn’t find it in the codebase.
Additionally, I attempted to implement it on the server but faced similar issues. Could you please confirm if this method is part of an upcoming release? Access to it would indeed be very beneficial for my needs.
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: