Closed dhafinrayhan closed 2 months ago
There really is no difference between server and static mode when running ' jaspr serve'. I also cannot reproduce this reliably.
Are you using any other dependencies than the ones from the starting project?
No, there are no other dependencies, no other changes. The steps I did is exactly as mentioned above.
Yeah, I believe there should be no differences between the two, but apparently it always happens when I use Static Mode and does not happen in Server Mode somehow.
Ok super weird, I can only reproduce this error when
Still no idea where the error comes from
Ok I think I know now. A very subtle race-condition inside the reloading logic
@dhafinrayhan Can you test if this is fixed with the following dependency override:
dependency_overrides:
jaspr:
git:
url: https://github.com/schultek/jaspr
path: packages/jaspr
ref: fix/reload-racecondition
Looking great! Seems like that fixes the issue.
Description
When running development (
jaspr serve
) on Static Mode, hot reload always crashes and can't recover after at one point there's a syntax error in the code (even after the syntax error is fixed afterwards).Steps To Reproduce
jaspr create my_website
.static
rendering mode (which should be the default).jaspr serve
.Counter()
).Doctor Output
Expected Behavior
Hot reload should work normally after the syntax error is fixed.
Additional Context
This error does not happen when the project is running on Server Mode.