Closed
Description
- Component or Package Name:
- Component or Package Version: 2.4.1
@jsxp-email/cli
Version?:- Operating System (or Browser): MacOS
- Node Version: 20.10
- Link to reproduction (
⚠️ read below): https://github.com/dan-smt/jsx-email-reproduction/tree/main/render-function-unable-to-load-config
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:
- comment out
render
, - run code with
renderPlainText
- add back in
render
- it works
maybe it completely ignored the config here? not sure
Metadata
Metadata
Assignees
Labels
No labels