Closed
Description
Issue details
When using the BrowserSync with nprogress.js the following message appears and prevents the site rendering "TypeError: Cannot read property 'style' of null". I believe the problem is due to BrowserSync only loading a tag containing the browser-sync-client.js code. Forgive me if this is a lack of understanding rather than a bug but I have read the reference material and can't find a solution
Steps to reproduce/test case
Using Gulp 4.0.0.0 containing a gulpfile.js and BrowserSync 2.26.3
const browserSync = require('browser-sync').create();
function serve(cb) {
browserSync.init({
proxy: 'app.local'
});
cb();
}
exports.serve = serve;
Run the following in a terminal instance gulp serve
Browser opens with the following errors in the console window.
Please specify which version of Browsersync, node and npm you're running
- Browsersync [ 2.26.3 ]
- Node [ 10.13.0 ]
- Npm [ 6.4.1 ]
Affected platforms
- linux
- [X ] windows
- OS X
- freebsd
- solaris
- other (please specify which)
Browsersync use-case
- API
- [X ] Gulp
- Grunt
- CLI
Metadata
Metadata
Assignees
Labels
No labels