I’m working on a Windows machine, Apache, php and mysql being handled by Ampps. I honestly don’t understand why the “publicPath” is “/wp-content/themes/theme-name” but I’ve seen this config online and this is the only variable that doesn’t make js saves loop reload for ever.
Did you move or migrate your site? That sounds like a wrong site URL in the wordpress database …
I think having 3-4 tabs of :3000 open at a time might work aswell depending on your computer performance - especially, if they are opened on different devices, as browsersync is working client-side, not server-side I guess. Maybe the problem with webpack/browsersync is, that it is monitoring and compiling various files in the theme-directory, which can be quite much. If it then has to refresh multiple tabs on the same machine at a time and you might also have other software running in the background (e.g. adobe PS or Illu), that might result in memory overload.
Not really… fresh installation. It does sound like a URL mismatch, I agree. But I’m not aware of where is that mismatch happening. Also, why would scss and js work just fine and not php?
The one thing of note in the console is that it’s calling for a inexistent css file in a “dist” folder, which is weird. But the css is working fine!
I thought maybe something similar is causing your problem as well? Maybe your php-files aren’t correctly referenced or you edited the functions.php or some other major .php file, which now affects your problems?
And have you tried deleting the .cache-loader folder and manually refreshing your site then?