Skip to content

renderToStream is not a function on react@canary #355

Open
@robahtou

Description

@robahtou

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/@react-email+render@0.0.12/node_modules/@react-email/render/dist/index.mjs:137:38)
        at Generator.next (<anonymous>)
        at fulfilled (webpack-internal:///(action-browser)/./node_modules/.pnpm/@react-email+render@0.0.12/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/@react-email+render@0.0.12/node_modules/@react-email/render/dist/index.mjs:137:38)
        at Generator.next (<anonymous>)
        at fulfilled (webpack-internal:///(action-browser)/./node_modules/.pnpm/@react-email+render@0.0.12/node_modules/@react-email/render/dist/index.mjs:35:24)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions