-
Notifications
You must be signed in to change notification settings - Fork 755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BrowserSync doesn't work when es6-module-transpiler module is also used #73
Comments
After even more digging, I found it's because of an I've opened an issue there instead: esnext/es6-module-transpiler#94 I hope if anyone else runs into this problem, they will find this issue helpful. |
Very interesting - thanks for doing so much 'digging'. Interested to know the outcome of this. |
@shakyShane I made a pull request on The authors of cli-color and es6-module-transpiler both asked if I had opened an issue on traceur-compiler, which adds the polyfill, so I've done that as well. google/traceur-compiler#775 Still unsure of what the outcome is going to be. Just hoping I will be able to use BrowserSync — it's much better than the alternatives. |
Haha - you're like Sherlock Holmes! thanks, and I hope this get's sorted asap :) |
I got a reply on traceur-compiler: google/traceur-compiler#775 (comment) Everyone seems to be placing the blame on each other's project. 😕 I've spent too much time trying to figure out a resolution for this, so I think I'm going to have to move on from this. @shakyShane Would you be open to using something like chalk instead of cli-color? |
Yeah I can't see why not. |
Latest BrowserSync should work fine now. https://github.com/shakyShane/browser-sync/wiki/Release-history |
0.6.0 |
I think I'm having a similar problem with gulp-traceur. I keep getting an error from Browser-sync reading es6 js files it shouldn't be watching in the first place: gulp.task 'browser-sync', ->
files = [
"./app/**/*.html"
"./app/assets/css/**/*.css"
"./app/assets/img/**/*.png"
"./app/assets/js/main.js"
]
browserSync(files, {
files: files
server: {
baseDir: './app'
}
})
gulp.task "js", ->
return gulp.src './app/assets/es6js/**/*.js'
.pipe plugins.sourcemaps.init()
.pipe traceur()
.pipe plugins.concat 'main.js'
.pipe plugins.sourcemaps.write()
.pipe gulp.dest( 'app/assets/js' )
.pipe( plugins.filter( '**/*.js' ) )
.pipe( reload( stream: true ) )
console.log("completed concat")
gulp.task 'default', ['sass', 'js', 'haml', 'browser-sync'], ->
gulp.watch './**/*.sass', ['sass']
gulp.watch './**/*.haml', ['haml']
gulp.watch '.app/assets/js/**/*.js', [ 'js' ]
```coffee
If I have a simple es6 javascript file like the following:
```coffee
let a = 2;
console.log(a); |
Just discovered this project, and I'm very excited to try it out! Unfortunately, I'm getting the following error when trying to use BrowserSync with Gulp:
I cloned
cli-color
andcl-strings
, ran their tests, and tried using them both in a tiny test script. I didn't run into any problems there. I can also usebrowser-sync
from the command line without a problem.The Gulp task I'm using comes directly from the examples on https://github.com/shakyShane/gulp-browser-sync
The text was updated successfully, but these errors were encountered: