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

TypeError when running email dev with symlinked directories for aggregated emails #1865

Open
abdokouta opened this issue Jan 13, 2025 · 0 comments
Labels
Package: react-email This is the CLI we generally use as just `email` on the temrinal. Type: Bug Confirmed bug

Comments

@abdokouta
Copy link

abdokouta commented Jan 13, 2025

Describe the Bug

Description:
An error occurs when running the React email development server (email dev) if the email source files are aggregated from different sources via symlinks. The issue arises with react email UI, it's unable to render a symlinked file as nextjs need actual file to serve

Error Message:

TypeError: l is not a function
at b (node_modules/react-email/dist/preview/.next/server/app/preview/[...slug]/page.js:6:330)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async y (node_modules/react-email/dist/preview/.next/server/app/preview/[...slug]/page.js:8:217)
When running the React email development server (email dev), an error occurs if the email source files are aggregated from different sources via symlinks. The issue arises when running React email UI throwing this error, the error goes when I copied the file (physical file) not symlinked file

Which package is affected (leave empty if unsure)

No response

Link to the code that reproduces this issue

https://github.com/maginium/module-framework

To Reproduce

Steps to Reproduce:
1. Aggregate email files from multiple sources using symlinks.
2. Run email dev in your React email project.

Expected Behavior

When running email dev it should render the email

What's your node version? (if relevant)

v20.13.1

@abdokouta abdokouta added the Type: Bug Confirmed bug label Jan 13, 2025
@gabrielmfern gabrielmfern added the Package: react-email This is the CLI we generally use as just `email` on the temrinal. label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: react-email This is the CLI we generally use as just `email` on the temrinal. Type: Bug Confirmed bug
Projects
None yet
Development

No branches or pull requests

2 participants