[GH-ISSUE #181] reactDOMServer.renderToPipeableStream is not a function error when trying to render email templates #62

Closed
opened 2026-03-01 14:39:49 +03:00 by kerem · 2 comments
Owner

Originally created by @m-kruthika on GitHub (Apr 8, 2025).
Original GitHub issue: https://github.com/arikchakma/maily.to/issues/181

Hi,

I'm encountering an issue when attempting to render email templates using maily. Specifically, I get the following error:

TypeError: reactDOMServer.renderToPipeableStream is not a function

Here’s a screenshot:

Image

Steps to Reproduce:

I'm just trying this on the frontend

const maily = new Maily({
		type: 'doc',
		content: [
		  {
			type: 'repeat',
			attrs: { each: 'items', showIfKey: null },
			content: [
			  {
				type: 'paragraph',
				attrs: { textAlign: 'left' },
				content: [{ type: 'text', text: 'Hello' }],
			  },
			],
		  },
		],
	  });
 const html = await maily.render();
 console.log("HTML", html);

I also tried this on the backend. I have the json stored in the db, I tried to send out emails using json, converting it to HTML. Similar error occurs.

Environment:
@maily-to/core version: ^0.2.7
@maily-to/render version: "^0.1.3",

React version: 19.1.0

Can someone help me with this issue please?

Originally created by @m-kruthika on GitHub (Apr 8, 2025). Original GitHub issue: https://github.com/arikchakma/maily.to/issues/181 Hi, I'm encountering an issue when attempting to render email templates using maily. Specifically, I get the following error: **TypeError: reactDOMServer.renderToPipeableStream is not a function** Here’s a screenshot: <img width="606" alt="Image" src="https://github.com/user-attachments/assets/4b04e46c-f976-4fda-9e77-6f4cc1d24ff5" /> Steps to Reproduce: I'm just trying this on the frontend ``` const maily = new Maily({ type: 'doc', content: [ { type: 'repeat', attrs: { each: 'items', showIfKey: null }, content: [ { type: 'paragraph', attrs: { textAlign: 'left' }, content: [{ type: 'text', text: 'Hello' }], }, ], }, ], }); const html = await maily.render(); console.log("HTML", html); ``` I also tried this on the backend. I have the json stored in the db, I tried to send out emails using json, converting it to HTML. Similar error occurs. Environment: @maily-to/core version: ^0.2.7 @maily-to/render version: "^0.1.3", React version: 19.1.0 Can someone help me with this issue please?
kerem closed this issue 2026-03-01 14:39:49 +03:00
Author
Owner

@arikchakma commented on GitHub (Apr 10, 2025):

You should be using it in backend not in frontend.

<!-- gh-comment-id:2795120210 --> @arikchakma commented on GitHub (Apr 10, 2025): You should be using it in backend not in frontend.
Author
Owner

@m-kruthika commented on GitHub (Apr 15, 2025):

In my issue above, I also mentioned that I used it in the backend.

I also tried this on the backend. I have the json stored in the db, I tried to send out emails using json, converting it to HTML. Similar error occurs.

I get the same error.

<!-- gh-comment-id:2803845769 --> @m-kruthika commented on GitHub (Apr 15, 2025): In my issue above, I also mentioned that I used it in the backend. **I also tried this on the backend. I have the json stored in the db, I tried to send out emails using json, converting it to HTML. Similar error occurs.** I get the same error.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/maily.to#62
No description provided.