-
Notifications
You must be signed in to change notification settings - Fork 433
HMR not working #357
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
Comments
What happens when you save a page when the app is running? Does the Command Window say webpack building? |
No nothing. I have used HMR in the past , I have an idea of how it works. But I am running out options in this case. So was wondering if anyone else is having similar issue. |
I just pulled a clean version and have HMR working. Do you get any errors on the console? Or messages at all? I sometimes see that the hot.json file doesn't get downloaded, but doing a hard refresh fixes it |
@kuseku Are you using VSCode or VS? |
@MarkPieszak @isaac2004 : 1. Yes I have Development Flag set and I could see it is setting HMR enabled options. I see following error : when I request the Page. I tried searching but No luck yet on fixing it , because it did case any other problem I left it. Now I am thinking this is causing HMR to fail is it ? Additionally I disabled SSR. Have this code for debugging, I never see Test-main browser App comment.
|
Were you able to resolve this? |
@isaac2004 nope, It is still same.. Refer to my latest comment,, I get above error during build and code wont hit HMR enabled logic.. My doubt is about version conflict not sure which version is causing the issue tough. |
can you do a fresh pull and try again without changing anything? What version of node do you have installed? is webpack installed globally? |
I have the same issue with HMR. First noticed it when I upgraded my project to .Net Core 2.0. Just pulled down this repo to see if it was a bug i introduced, and have same issue with fresh copy of the code. The error I see is: What appears to be happening is the routing is picking up the call to __webpack_hmr and, not finding a valid route for that, is defaulting back to /Home/Index, which returns html. This seems to be a .net core 2.0 thing, there is some difference in how it is handling the get request. |
DUDE! That fixes it! Thanks for the link. |
I also have problem with HMR. It looks that everything is ok but it doesn't change the page content: Also in log I can see one fail state but the error is just warning and may be is not related to HMR problem: |
The template error is because of ngx-bootstrap. If you search that error in those issue list there will be a fix for it. |
Hello ,
I just pulled latest code and ran the web site. Everything seems to work but HMR. Any pointers ? No changes made, I verified the Hosting Environment and it is "Development" .
The text was updated successfully, but these errors were encountered: