Hot Reload not working when modifying components imported in the email files (when using path aliases) #1872
Labels
Package: react-email
This is the CLI we generally use as just `email` on the temrinal.
Type: Bug
Confirmed bug
Describe the Bug
I have the following file structure:
When I modify anything in
footer.tsx
(orlayout.tsx
), the dev server outputs✔ Successfully rendered footer.tsx in 236ms
but does not re-rendergeneric.tsx
that imports both of those components.Which package is affected (leave empty if unsure)
react-email
Link to the code that reproduces this issue
https://github.com/NickTiut/react-email-bug
To Reproduce
Run
npm run dev
on the example provided. Modify anything in the_components/layout.tsx
or_components/footer.tsx
files. Web client does not update. If you restart the dev server, the changes are picked up.Expected Behavior
Any change to the components should be reflected instantly on the web client.
What's your node version? (if relevant)
20.4.0
The text was updated successfully, but these errors were encountered: