Skip to content

Hot Reload not working for emails more than one level deep in the folder #2242

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

Closed
francescosalvi opened this issue May 15, 2025 · 3 comments
Closed
Labels
Package: react-email This is the CLI we generally use as just `email` on the temrinal. Type: Bug Confirmed bug

Comments

@francescosalvi
Copy link

Describe the Bug

Like stated in the title (and also by this comment on 1872: #1872 (comment)) email dev's hot reload/watch feature seems to not work for files/components placed more than one level deep in the root email folder.

Which package is affected (leave empty if unsure)

No response

Link to the code that reproduces this issue

https://github.com/francescosalvi/react-email-dev-reload-depth-issue

To Reproduce

  1. checkout the linked repo with working repro
  2. run yarn dev
  3. open the url in the browser
  4. ✅ make changes to the sources of Depth0.tsx: process stdout shows Successfully rendered Depth0.tsx, in browser the component is refreshed
  5. ✅ make changes to the sources of Depth1.tsx: process stdout shows Successfully rendered Depth1.tsx, in browser the component is refreshed
  6. 🔴 make changes to the sources of Depth2.tsx: process stdout shows nothing, in browser the component is not refreshed
  7. ✅ 4 and 5 can be repeated and still work as expected

Expected Behavior

Changing components at any nesting level should still trigger their reload

What's your node version? (if relevant)

No response

@MrCode1997
Copy link

I'm facing the same issue, the repro correctly shows the problem.
Thanks @francescosalvi

@gabrielmfern gabrielmfern added the Package: react-email This is the CLI we generally use as just `email` on the temrinal. label May 15, 2025
gabrielmfern added a commit that referenced this issue May 16, 2025
@gabrielmfern
Copy link
Collaborator

Should be fixed in react-email 4.0.14

@francescosalvi
Copy link
Author

thanks for the speedy resolution!

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

3 participants