Roots Discourse

Browsersync page refresh loop


My config file:

  "entry": {
    "main": [
    "customizer": [
  "publicPath": "/wp-content/themes/cars",
  "devUrl": "",
  "proxyUrl": "http://localhost:3000",
  "cacheBusting": "[name]_[hash:8]",
  "watch": [

after yarn start my localhost:3000 refreshes instantly… What I do wrong?
all path are ok
and everything was ok, before I installed some npm-libs

1 Like

BrowserSync keeps reloading infinitely upon JavaScript changes
Infinite reload on Javascript Changes (Docker environment - boilerplate setup linked)

Are you devUrl and canonical URL for WordPress the same?

Also, using a .info TLD for a development site is most likely not a good idea. I would recommend switch it to .test or .localhost as they are reserved for purposes like development.



yes, there are
I can access my webpage by this domain



Is this your development URL? Is the site being served by a local web server like MAMP or something similar? Sage’s development process only works for a development site served locally. (Reread the original post, sorry.)

If you delete your node_modules and rerun yarn && yarn start does it work? Or if you remove those packages you installed does it work?

Also, are there any error messages that Webpack is displaying?

If none of that works, In resources/assets/build/, temporarily add the following so we can get some useful debugging output:

    new BrowserSyncPlugin({
      proxyUrl: config.proxyUrl,
      delay: 500,
+     advanced: {
+       browserSync: {
+         logLevel: 'debug',
+       },
+     },

Once you’ve added that, run yarn start and report on or dump the output here.



no… removing dependencies, later removing whole node_modules and yarn - doesn’t help

also: here is output



Am having the same issue as well. Is there a fix?



@kotmatpockuh First, make sure there is no other processes running on port 3000 with sudo fkill :3000 then run yarn start again. If it keeps refreshing, open chrome developers tools and right click on the browser site reload button then click empty cache with force refresh. Should be good.

1 Like


The same happening to me sometimes. I just stop and rerun yarn start and it’s ok again.

Similar as when a new image is added to /images folder, everything goes to hell, then rerunning yarn does the job.



I having the same issue as well. Stopping and restarting clears out the issue, but would be great to find a solution to make the watch script work as expected.