Skip to content
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

renderToStream is not a function on react@canary #355

Open
robahtou opened this issue May 9, 2024 · 2 comments
Open

renderToStream is not a function on react@canary #355

robahtou opened this issue May 9, 2024 · 2 comments

Comments

@robahtou
Copy link

robahtou commented May 9, 2024

Using "resend": "3.2.0" with the canary version of react to work through upgrading our apps to use useActionState`.

Within our actions we call out to resend. But once we did the package updates we started seeing this error:

TypeError: renderToStream is not a function
        at eval (webpack-internal:///(action-browser)/./node_modules/.pnpm/@[email protected]/node_modules/@react-email/render/dist/index.mjs:137:38)
        at Generator.next (<anonymous>)
        at fulfilled (webpack-internal:///(action-browser)/./node_modules/.pnpm/@[email protected]/node_modules/@react-email/render/dist/index.mjs:35:24)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    Resend error: TypeError: renderToStream is not a function
        at eval (webpack-internal:///(action-browser)/./node_modules/.pnpm/@[email protected]/node_modules/@react-email/render/dist/index.mjs:137:38)
        at Generator.next (<anonymous>)
        at fulfilled (webpack-internal:///(action-browser)/./node_modules/.pnpm/@[email protected]/node_modules/@react-email/render/dist/index.mjs:35:24)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
@Xexr
Copy link

Xexr commented May 9, 2024

Seeing the same error.

There is some further discussion here on the react-email repo: resend/react-email#1383 (comment)

I've been able to get this particular error to go away by:

Similar process for updating react-email/tailwind too (merging #1383)

However, its still not fully working, particularly the tailwind part so I'm stuck.

@dBianchii
Copy link

If anyone is still having this error:

I updated my resend package to latest version and it worked 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants