-
Notifications
You must be signed in to change notification settings - Fork 300
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] Cannot apply update. Need to do a full reload! #125
Comments
UPDATE moving
in app.jsx and making a change to a component I got:
The errors are not displayed and the page is not refreshed but the updates are not applied to the webapp |
I've been searching the causes of the error, and I've found it mentioned: Here is an example of the problem with the same exact issue: I've downloaded a fresh sample of electrode, and the problem exists if you choose to preserve the log. So the issue was never fixed after all, and .. never worked. |
@darkbls I found the same issue and It is fixed. |
Hi thanks for reporting the issue. We will look into it. |
@jchip I was checking the webpack.hot config and I noticed that the entry point is set to use the port 2992 but the app is running on 3000, this might be the reason why even with module.hot.accept the components are not updated. |
I have a pending PR #124 that syncs a lot of our internal changes and updates. I just tested |
@jchip do you know when this improvement will be available? thank you |
@orlandodemauro can you try out the sample
thanks. |
@jchip I'm having issues installing the packages
|
@orlandodemauro oh, I missed a step, need to do Anyways, HMR should be fixed by this PR #128 |
I have to remove EDIT: the hostname shouldn't matter, but I noticed an error about |
@orlandodemauro is it still doing full reload with PR #128 for you? It is working for me as you can see from my screenshot. |
@jchip yes it is, the HMR errors are not displayed but it is doing a full reload of the page every time that i make a change to a component, could it be related to nodemon? |
@orlandodemauro how do you tell if it's doing a full reload? |
@jchip here the steps that I'm doing: 1 brows to todo-app Aspected behaviour: Current behaviour: I think that nodemon is reloading the page. |
@orlandodemauro hmm... It seems after updated, WDS is doing a Reloading... That makes the browser do a Navigated. |
@jchip this is weird, here https://github.com/gaearon/react-hot-loader/blob/master/docs/Troubleshooting.md an example of what we should see into the console |
@jchip here an interesting reading https://medium.com/@rajaraodv/webpacks-hmr-react-hot-loader-the-missing-manual-232336dc0d96#.vqlv2hlko I'll try to play with the config tomorrow. |
@orlandodemauro ok, fixed. PR updated. |
@jchip your PR is still not working for me, I can see the right console log now
but the changes are not rendered into the page. I did some test on my local environment using the old configuration and I have the hot reloader working for the components but for the css. what I did is set the dev environment in the gulp ( hot ) task and replace
with
in webpack.config.hot because babel.loaders was undefined when passed to concat. I hope this can help |
@orlandodemauro it is working for me. See the new animation I uploaded to the PR. |
@orlandodemauro thanks for the info on |
@jchip is it working for CSS update as well? |
no, maybe some other postcss hot loader is needed? |
@orlandodemauro closing out this issue. could you submit a new one for CSS HMR please? |
@jchip I have a fix :) I'll open the issue and the pr soon thanks for your fast fix |
Added istanbul config for various coverage scenarios
Hi guys,
we started to use electrode to build our webApp moving away from a custom configuration. What I notice is that there is a issue with webpack hot reloader. The app is losing the state every time that I apply a change and this is what the use of hot-reloader is suppose to avoid.
I'm running the dev server using
gulp hot
and every time that I apply a change the server is restarted because of this error:I'm using
but this doesn't fix the issue. any suggestion? thanks a milion
The text was updated successfully, but these errors were encountered: