# Sage infinite reload loop when changing scripts

**URL:** https://discourse.roots.io/t/sage-infinite-reload-loop-when-changing-scripts/17222
**Category:** sage
**Tags:** webpack
**Created:** 2019-12-07T13:07:26Z
**Posts:** 2
**Showing post:** 2 of 2

## Post 2 by @psymeon — 2019-12-11T11:21:17Z

Not sure which version of Sage you are using, but I have experienced similar issues with Sage 9. Some times the issue would be a wrong configuration in the `resources/assets/config.json`. Make sure that you have correctly set `publicPath`, `devUrl` and `proxyUrl`. If this is all correct, then try hard-reloading your browser. In Chrome, with Dev Tools open, click and hold the reload button and select “Empty Cache and Hard Reload”.

Also check out this related issue:

> [@BrowserSync keeps reloading infinitely upon JavaScript changes](https://discourse.roots.io/t/browsersync-keeps-reloading-infinitely-upon-javascript-changes/14685):
>
> Yarn build works fine, yarn start works fine and reloads properly when changing views (php) or scss. When changing JavaScript BrowserSync keeps reloading infinitely. The console then returns this error before reloading: The connection to http://localhost:3000/\_\_webpack\_hmr was interrupted while the page was loading. My dev environment: MacOS Mojave, Valet, node 11.2.0, Firefox 64.0.2 I’m using Bootstrap. config.json: { "entry": { "main": [ "./scripts/main.js", "./styles/m…

---

_[View the full topic](https://discourse.roots.io/t/sage-infinite-reload-loop-when-changing-scripts/17222)._
