BrowserSync infinite loading in WSL

Hi guys, i need a help with BrowserSync. I use ubuntu (WSL), with apache2 for run my projects, but i am coming with a problemn in BrowserSync. My project not showing in localhost:3000, the page stay loading infinite.

My config.json

   "publicPath": "/wp-content/themes/mytheme",
  "devUrl": "http://mytheme.localhost/",
  "proxyUrl": "http://localhost:3000",
  "cacheBusting": "[name]_[hash:8]",
  "watch": [
    "app/**/*.php",
    "config/**/*.php",
    "resources/views/**/*.php"
  ]

log debug: [BS] [debug] -> Starting Step: Finding an empty port[BS] [debug] Found a free - Pastebin.com

Are you 100% that’s the right devUrl? like if you were to type “http://mytheme.localhost/” on your browser you get to your site?. That’s the only thing I could think of. You can also try changing the port to like 3001 instead of 3000

Yes, i’m use multisite wordpress.

Are you running yarn start from “inside” WSL or “outside”? Because of the virtualized environment, sometimes BrowserSync and other tools will struggle w/ WSL stuff.

In WSL, i’m use ubuntu. The localhost:3000 open in my browser but just stay loading.

1 Like

Same issue here in MacOSX, any solution?

This could be helpful: