You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reflex Frontend Exception when re-compiling after code changes #5545
Reflex frontend errors are printed to command line when code is re-compiled after code changes. Killing and restaring process fixes the issue. Just happens during development when code changes are applied directly.
[Reflex Frontend Exception]
Error: No module update found for route routes/_index
at http://localhost:3000/@id/__x00__virtual:react-router/hmr-runtime:476:15
You may have to comment in/out the code block in the dynamic() function a few times to trigger the exception. I was not able to find a fully deterministic way to provoke the issue.
Specifics (please complete the following information):
Python Version: 3.12
Reflex Version: 0.8.1
OS: OSX
Browser (Optional): Chrome
Additional context
Not every change triggers the problem. Some do but it is hard to narrow down deterministically. Issue was introduced in 0.8.x release. Did not occur in 0.7.14
Modify the font_size parameter to 1.75em and save / trigger re-compile.
For me, this change triggers the issue most of the time. Latest after changing it back to 0.75em and saving to trigger a re-compile I get the exception on the console.
I am on OSX using zsh to start the application/reflex. Is this now reproducable for you?
Tried to get rid of the error, but honestly I’m kinda stuck. At first I thought it was because I was passing Optional values from my Pydantic model into params that aren’t marked as optional — made sense at first, since the error looked like it was about that. But nope, it still pops up even when that’s not the case.
Then I tried adding a dummy page for the / route that just returns rx.text(), gave it a different name (not index), just in case... but yeah, didn’t help either. Which makes sense, 'cause why would the function name matter? Still, the error kept showing up and disappearing randomly.
I’ll keep digging, but it’s kinda hard to track down since it comes and goes randomly. Feels super weird honestly.
The update of node reduced the occurrence quite drastically but I still get this issue. I cannot really make much sense why some changes still cause this error and some don't.
generally, if a reflex compile updates multiple files, including ones where the developer is not viewing, that typically happens, but it's more frustrating when reflex compiles a file in-deterministically causing random saves to change things that weren't intended
if anyone has small enough of a repro, feel free to paste it here, i will try investigating any we can reproduce
Closing due to inactivity — we were unable to reproduce this deterministically and there's been no update since August 2025. Hot-reload has seen several improvements since 0.8.1. If you're still hitting this on a recent version of Reflex, please reopen with steps to reproduce.
Activity
linear commentedon Jul 8, 2025
ENG-6614 Reflex Frontend Exception when re-compiling after code changes
adhami3310 commentedon Jul 10, 2025
i'm not hitting this right now :/
thorsmann commentedon Jul 11, 2025
Okay, another try. slightly modified code
my pyproject.toml
uv run reflex runModify the font_size parameter to
1.75emand save / trigger re-compile.For me, this change triggers the issue most of the time. Latest after changing it back to 0.75em and saving to trigger a re-compile I get the exception on the console.
I am on OSX using zsh to start the application/reflex. Is this now reproducable for you?
adhami3310 commentedon Jul 11, 2025
i'm still not reproducing it, do you have node globally? and what version is it
node --version?thorsmann commentedon Jul 14, 2025
My global node version was
v23.11.0. I just updated to the latest24.4.0. This seems to fix it. Thank you!kesevone commentedon Jul 20, 2025
+1
reflex==0.8.0Tried to get rid of the error, but honestly I’m kinda stuck. At first I thought it was because I was passing Optional values from my Pydantic model into params that aren’t marked as optional — made sense at first, since the error looked like it was about that. But nope, it still pops up even when that’s not the case.
Then I tried adding a dummy page for the / route that just returns rx.text(), gave it a different name (not index), just in case... but yeah, didn’t help either. Which makes sense, 'cause why would the function name matter? Still, the error kept showing up and disappearing randomly.
I’ll keep digging, but it’s kinda hard to track down since it comes and goes randomly. Feels super weird honestly.
adhami3310 commentedon Jul 20, 2025
we had some fixes we know about that came in 0.8.1 btw, so 0.8.0 might have some predictable ones of this kind
kesevone commentedon Jul 20, 2025
Oh, thanks for the info — just updated, I’ll keep an eye on it.
thorsmann commentedon Aug 6, 2025
The update of node reduced the occurrence quite drastically but I still get this issue. I cannot really make much sense why some changes still cause this error and some don't.
adhami3310 commentedon Aug 6, 2025
generally, if a reflex compile updates multiple files, including ones where the developer is not viewing, that typically happens, but it's more frustrating when reflex compiles a file in-deterministically causing random saves to change things that weren't intended
if anyone has small enough of a repro, feel free to paste it here, i will try investigating any we can reproduce
masenf commentedon Mar 25, 2026
Closing due to inactivity — we were unable to reproduce this deterministically and there's been no update since August 2025. Hot-reload has seen several improvements since 0.8.1. If you're still hitting this on a recent version of Reflex, please reopen with steps to reproduce.