Skip to content

Unable to load jsx-email.config #257

Closed
@dan-smt

Description

@dan-smt

Expected Behavior

console log html & plaintext

Actual Behavior

Terminal error:

⨯ Error: Cannot find module '/Users/code/jsx-email-issues-reproduction/render-function-unable-to-load-config/jsx-email.config.mjs'
    at /Users/code/jsx-email-issues-reproduction/render-function-unable-to-load-config/.next/server/app/(app)/page.js:25:11
    at sendEmail (./src/app/(app)/actions.tsx:22:18)

Additional Information

To test install dependencies then run pnpm dev, this will start nextjs, then click the only button on the top left of the screen

I've tracked the issue down to the render function specifically, interesting behaviour:

  1. comment out render,
  2. run code with renderPlainText
  3. add back in render
  4. it works

maybe it completely ignored the config here? not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions