# Getting error message in "Sending Emails - 3. Creating an email template" section

**URL:** <https://forum.codewithmosh.com/t/getting-error-message-in-sending-emails-3-creating-an-email-template-section/23878>\
**Category:** Next.js\
**Created:** [November 29, 2023, 2:12am UTC](https://forum.codewithmosh.com/t/getting-error-message-in-sending-emails-3-creating-an-email-template-section/23878 "2023-11-29T02:12:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Greiffenberg](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/greiffenberg/32/7402_2.png) [@Greiffenberg](https://forum.codewithmosh.com/u/Greiffenberg)\
**Post date:** [November 29, 2023, 4:44pm UTC](https://forum.codewithmosh.com/t/getting-error-message-in-sending-emails-3-creating-an-email-template-section/23878/3 "2023-11-29T16:44:58Z")

</div>

OK, reading this thread:

> <https://github.com/resendlabs/react-email/issues/868>
>
> \### Describe the Bug
> 
> We are testing out react-email for use in our project, b…ut getting this error when trying to deploying a test template:
> \`\`\`
> yarn start
> yarn run v1.22.19
> $ serverless offline --httpPort 4051 --stage local --host 0.0.0.0
> serverless-offline-ssm checking serverless version 3.33.0.
> ✖ in ../node\_modules/@react-email/components/node\_modules/@react-email/render/dist/index.mjs 31:23-45
> export 'renderToReadableStream' (imported as 'renderToReadableStream') was not found in 'react-dom/server' (possible exports: renderToNodeStream, renderToPipeableStream, renderToStaticMarkup, renderToStaticNodeStream, renderToString, version)
> \`\`\`
> 
> Template code:
> \`\`\`
> import React from 'react'
> import {
> Body,
> Head,
> Heading,
> Container,
> Html,
> Text,
> } from '@react-email/components'
> 
> interface AccessRequestParams {
> testName: string
> }
> 
> export const accessRequestExpiryTemplate = ({
> testName,
> }: AccessRequestParams) =\> (
> \<Html\>
> \<Head /\>
> \<Body\>
> \<Container\>
> \<Heading\>TEST\</Heading\>
> \<Text\>Here are the details of the request:\</Text\>
> \<Text\>{testName}\</Text\>
> \</Container\>
> \</Body\>
> \</Html\>
> )
> 
> export default accessRequestExpiryTemplate
> 
> \`\`\`
> 
> Package.json versions
> \`\`\`
> "dependencies": {
> "@react-email/components": "^0.0.7",
> "react-email": "^1.9.4",
> "react": "18.2.0",
> "react-dom": "^18.2.0",
> "react-router-dom": "^6.11.2",
> "react-tooltip": "4.2.21",
> }
> \`\`\`
> 
> 
> \### Which package is affected (leave empty if unsure)
> 
> @react-email/components
> 
> \### Link to the code that reproduces this issue
> 
> n/a
> 
> \### To Reproduce
> 
> Deploy with the listed package versions - 
> We're using serverless: '"start": "serverless offline --httpPort 4051 --stage local --host 0.0.0.0"'
> 
> 
> \### Expected Behavior
> 
> The code should compile cleanly without this import error
> 
> \### What's your node version? (if relevant)
> 
> 18.13.0

Someone came up with a solution:

1. In the folder “.react-email” delete package-lock.json and yarn.json
2. Still in same folder in package.json set “@react-email/render” to version “0.0.9”
3. Delete folder “node\_modules”
4. In terminal run “npm i” to reinstall it all

Hope this helps someone else 😊

---

_[View the full topic](https://forum.codewithmosh.com/t/getting-error-message-in-sending-emails-3-creating-an-email-template-section/23878)._
