#renderToReadableStream not found in react-dom/server

1 messages · Page 1 of 1 (latest)

mild shoal
#

Hey team, I'm facing the same problem mentioned in this link: https://github.com/resendlabs/react-email/issues/868 After upgrading to Next14, my project won't build. Can anyone help?
Maybe update the Resend lib on Trigger dev helps!

I'm using @trigger.dev/resend": "^2.2.4 here my project code https://github.com/johanguse/hanko_hackathon/pull/9/files

`Failed to compile.

./node_modules/.pnpm/@[email protected]/node_modules/@react-email/render/dist/index.mjs
Attempted import error: 'renderToReadableStream' is not exported from 'react-dom/server' (imported as 'renderToReadableStream').

Import trace for requested module:
./node_modules/.pnpm/@[email protected]/node_modules/@react-email/render/dist/index.mjs
./node_modules/.pnpm/[email protected]/node_modules/resend/build/src/resend.js
./node_modules/.pnpm/[email protected]/node_modules/resend/build/src/index.js
./node_modules/.pnpm/@[email protected]/node_modules/@trigger.dev/resend/dist/index.js
./src/jobs/replicate-avatar.ts`

GitHub

Describe the Bug We are testing out react-email for use in our project, but getting this error when trying to deploying a test template: yarn start yarn run v1.22.19 $ serverless offline --httpPort...

mystic cypress
#

Ah yes, it's because we use the official Resend package inside our @trigger.dev/resend package. And that uses the react-email package… sad

#

They've fixed the issue in the react-email package. Do you know if that change is now in the latest Node Resend package? If it is then this will be as simple as updating our dependency and republishing our package. It sounded like it wasn't released yet

mild shoal
mystic cypress
#

Annoyingly I don't think the canary version of react-email is in a release of the Resend package yet, so we can't update it yet

mild shoal
mystic cypress
#

I've added this to our team meeting for Monday.

mystic cypress
#

Hey @mild shoal, we have a pre-release version of our packages that should fix this – we updated to the new Resend package above.

@trigger.dev/[email protected]
@trigger.dev/[email protected]
etc.

Make sure all the packages are this version – we lockstep the packages together.

#

We're going to publish these packages as latest soon

mild shoal
#

No rush on my side I'll waiting for the release version. Thank you Matt.

mystic cypress
#

Cool

high jolt
#

@mild shoal sorry I didn't send you this earlier but this has now been fixed 👍