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
Reloading error sometimes #1710
Comments
Hm, looks to be a race condition with the asset manifest being generated:
Preloading is prod-only, so that plugin should probably only be returning an empty object in dev. |
Hmm ok. I'm running via |
Let me know if you can reliably reproduce it, though I somewhat doubt that's possible. I assume another save/HMR tick fixes this? I think an early return is all that's needed there, will try to get something together tomorrow. Edit: Put a PR together. If you are willing, try applying the changes with something like |
Yeah, not sure how to cause it. Seems to happen more when I have code that contains errors... I actually need to restart the whole dev server to get it working again. It hangs for me... I'll try using |
Used the patch for 1 hour now and didn't get any errors for this hour. Without the patch I got the error every now and then, so it seems to be working 🎉 |
I get this error every single time I introduce a TypeScript error (but only if Preact CLI has been running for a while; it does not appear when it's only been running for a few minutes). My guess was therefore that this had something to do with the output from The error is not resolved by saving files again, instead I need to restart Preact CLI each time. In the meantime, Preact CLI will serve the old files, which is often quite confusing. (I am running Preact Cli 3.4.0, TypeScript 3.9.9) |
TS errors have no impact on the dev server, no. Syntax errors in TS might, depending on the specific syntax issue.
|
I'm having the same issue |
Hello, I'm also having this same issue.
I can consistently reproduce it by re-declaring some type, e.g.: type Test1 = any;
type Test1 = any; Which throws kinda standard type error and after I fix it, e.g.: type Test1 = any;
type Test2 = any; Then Webpack hangs with error:
And won't reload itself after another change. It needs to be killed and started again. Fix mentioned above solves this issue for me. Thanks. |
Fix released in v3.4.1. Let me know if anyone still has any problems. |
I'm not sure if this is a bug with hot reloading or not, but sometimes I'm getting the following error (happens a lot when I make some larger code changes).
The text was updated successfully, but these errors were encountered: