Closed giordanovi closed 8 years ago
Hi, I also have this problem when use tunnel: true
and try to call browserSync.stream()
or browserSync.reload()
before initialize browserSync.
I think there is a bug in Browser Sync that start the watch for changes process before initializing Browser Sync.
In my case I solve starting a gulp task dependencies in the callback like this:
gulp.task('serve.sync', ['serve.clean', 'serve.php'], function () {
var bs = BrowserSync({
open : false,
logConnections : true,
proxy : '127.0.0.1:8100',
online : true,
tunnel : true,
files : [
'./app/index.php',
"./app/themes/**/*.twig",
'./app/themes/**/*.{js,css}', // Javacripts & CSS Assets
'./app/themes/**/*.{woff,ttf,svg,eot}', // Fonts Assets
'./app/{themes,upload}/**/*.{png,jpg,gif}', // Images Assets
]
}, function() {
gulp.start('theme.serve');
});
});
@giordanovi please provide a small sample project showing this issue as I'm unable to reproduce :)
I am also having this issue, any help would be appreciated
Hi, when i run browser sync (2.9.8) with "tunnel" option enable, i give the following error:
I run with the following code:
what is the problem!?