-
-
Notifications
You must be signed in to change notification settings - Fork 380
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
HMR not working #85
Comments
Have the same issue :( |
My current workaround is: // on server
loadableState.getScriptTag().replace(/-\d+(?=")/g, '') The idea is to remove the ending dash with index ("./NotFoundPage-1" -> "./NotFoundPage"), and error is gone 😄 |
Oh.. I know what is the problem, this is actually a real bug! Can you try to fix it? |
Honestly I don't know where to start. Is it related to this file? |
Yeah it could be pretty complicated, just let go for now. I will create an issue to describe the exact problem. |
Hi, I can confirm the latest release (2.2.1) fixed the issue, thanks @neoziro ! |
Sorry to add on an old issue but we're getting this again on 2.2.2. The problem is that happens randomly so it's very hard to reproduce. Once it happens, it keeps happening until the the server is restarted. |
Just updated to 2.2.2 and it's happening again. Can you help? @neoziro |
Have the same issue :(
and the warning
|
I have the same issue and errors as above with version Loadable Components 2.2.3 and Webpack HMR. |
HMR is not supported in the new version (I think @theKashey could have an idea to support it). I close it because it concerns loadable v2, feel free to reopen a new issue. |
@neoziro do I understand correctly that this problem will be solved in loadable v3, or even v4 (it seems you are working on v4 already?) also, @antonybudianto 's solution doesn't seem to work for me. With this workaround, the issue seems to happen less frequently, but it still happens. |
HMR is supported in v4, but React Hot Loader is not supported. |
Not yet supported? |
React Hot Loader is maybe supported 😅 |
I made a test using razzle. Everything is working as expected. If you experience any problem with Hot Reloading, please open a new issue. This one was about v2.x, today v5 has been rewritten from scratch and has nothing in common with this issue. |
Hi,
I'm doing SSR with HMR, when trying to change lazy loaded component, the HMR works on client side, but when I tried to refresh the page, the console is showing these errors:
How to Reproduce:
src/routes/NotFoundPage/NotFoundPage.js
Any pointers will be helpful, thank you!
The text was updated successfully, but these errors were encountered: