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.

Browser sync injects old browser-sync-client version after update

See original GitHub issue

Browser sync 2.9.8 is installed:

$ npm ls browser-sync
docdata@0.0.1 /Users/kvcrawford/git/DocData/DocDataWebApp
└── browser-sync@2.9.8

My very basic Browser Sync gulp task:

gulp        = require 'gulp'
browserSync = require 'browser-sync'

gulp.task 'sync', ->
  browserSync
    server: true
    startPath: '/dev.html'
    files: [
      './*.html'
      './dist/js/**/*.js'
      './dist/**/*.css'
    ]

Yet the script injected at the top of the page is the wrong version:

<script type='text/javascript' id="__bs_script__">//<![CDATA[
    document.write("<script async src='/browser-sync/browser-sync-client.2.8.2.js'><\/script>".replace("HOST", location.hostname));
//]]></script>

This path returns a 404.

Following @sc0ttwad3’s instructions in https://github.com/BrowserSync/browser-sync/issues/791#issuecomment-138741818 resolves the issue.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
shakyShanecommented, Oct 1, 2015

Have you cleared your browser cache?

0reactions
jeffbskicommented, Oct 20, 2015

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browser Sync not injecting/updating styles #955 - GitHub
I'm using a similar gulpfile to the one on the website. I'm just compiling sass and reloading the styles. The site loads just...
Read more >
Browsersync options
Browsersync includes a user-interface that is accessed via a separate port. The UI allows to controls all devices, push sync updates and much...
Read more >
Browser-sync not injecting CSS for remote site - Stack Overflow
I need to do CSS styling of a remote site. I can't host the site locally for development, so I'd rather tweak the...
Read more >
browser-sync | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Browsersync - Twitter
Released browser-sync@2.26.10 - updated dependencies to silence the security warnings BrowserSync is now limitied to Node 8+. If you're still running Node 6 ......
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