When changing a JS file under the watch command it will get stuck in a loop reloading the page unless I stop and restart the server, producing this error in the console:
I have the same problem.
Loop reloading browser window is very annoying. Does anyone have a solution for this?
In my common.js file there are few features that do not show errors
I have the same problem.
But it starts after I added a component by npm.
So I removed it but it’s still looping.
Then I check my publicPath and devUrl, trying different solutions but nothing.
It’s really annoying.
Mhm, I just can’t get this thing to work properly:
[HMR] The following modules couldn't be hot updated: (Full reload needed)
This is usually because the modules which have changed (and their parents) do not know how to hot reload themselves. See http://webpack.github.io/docs/hot-module-replacement-with-webpack.html for more details. @ process-update.js:81
[HMR] - ./assets/scripts/main.js @ process-update.js:89
[HMR] Reloading page process-update.js:128
I’m using this with MAMP and WP Multisite.
Working anything with JS is unusable, JS doesn’t build and page is infinitely reloading.
None of the tweaks mentioned in couple of threads on this forum don’t fix the issue.
Also what type of local development tool do you guys use for devepling the Sage 9, and you don’t see this issue? I think it became a common issue now with MAMP~~
Has anyone seen any way to resolve this? I used Sage 8 for everything but Sage 9, months after release, still gives me fits with stuff like this. I have to hack my way around to get this to not go into an autoreload loop and it’s to the point that I can’t even continue working on the site.
My config file (and yes, the settings are correct… this works 90% of the time):
@builtbyvern I just had the same problem and I seems like I solved it by changing publicPath from /myMultisite/wp-content/themes/sage to /myMultisite/mySite/wp-content/themes/sage
In other words, the path is includes my subsite, not the parent site.
If you are using Bedrock with Sage it should be like “/app/themes/newromans”; I had similar constant reload issue whenever i updated a file and it all came down to a typo in my path.