question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Browsersync UI page not working for Laravel or Sage

See original GitHub issue

Issue details

It seems that the UI page doesn’t work on my latest projects. The page will partially load but gives JS errors.

Steps to reproduce/test case

  1. Create a laravel app or bedrock installation + sage.
  2. Link valet (if using a Mac) or use something related to get a .test domain working. (Laragon for Windows)
  3. If you’re creating a laravel app, place this in webpack.mix.js
mix.browserSync({
    proxy: 'yourprojectname.test',
});

Please specify which version of Browsersync, node and npm you’re running

  • Browsersync [ 2.27.4 ]
  • Node [ 15.14.0 ]
  • Npm [ 7.19.1 ]

Affected platforms

  • linux
  • windows
  • OS X
  • freebsd
  • solaris
  • other (please specify which)

Browsersync use-case

  • API (I’m running it with laravel Mix in my latest use case)
  • Gulp
  • Grunt.
  • CLI

for all other use-cases, (gulp, grunt etc), please show us exactly how you’re using Browsersync

To get around using “artisan serve” a.k.a. 2 commands to develop my application. Everything works fine except the UI page which I use to example; enable remote debugging.

Schermafbeelding 2021-07-20 om 15 05 57

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
j0eiicommented, Jul 24, 2021

for laravel 8.40 or above,

you need to downgrade the browsersync to the following version in package.json for temporary fix:

        "browser-sync": "~2.24.*",
        "browser-sync-webpack-plugin": "~2.2.*",

then run yarn install

3reactions
bfrickensteincommented, Jul 21, 2021

Downgrade to 2.24.7 and it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sage 10 Browsersync not refreshing - Roots Discourse
I'm having an issue getting Browsersync to refresh after a file edit. I run my start script, which runs with no errors, I...
Read more >
WP Sage - Browsersync proxyUrl not working - Stack Overflow
In terms of my environment, I'm using Laravel Valet, which is parked in a projects directory on my machine. The site in question...
Read more >
BrowserSync | Laravel Mix Documentation
BrowserSync will automatically monitor your files for changes, and insert your changes into the browser - all without requiring a manual refresh.
Read more >
Laravel Mix - CSS and Java Compilation Made Easy
I personally ran into a problem with node-sass which I had installed globally and worked fine with other projects. If you run into...
Read more >
Browsersync Proxy Stuck Loading - ADocLib
Total Laravel newbie here although I worked with BrowserSync in other application just ... When I run Gulp the UI page works on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found