I have i problem with gulp-ruby-sass. When i try to run the watch task and change some .sass files it occurs error:
TypeError: Arguments to path.join must be strings
Here is my gulpfile.js
var gulp = require('gulp');
var jade = require('gulp-jade');
var sass = require('gulp-ruby-sass');
var watch = require('gulp-watch');
gulp.task('sass', function() {
return gulp.src('sass/*.sass')
.pipe(sass())
.pipe(gulp.dest('./css'));
});
gulp.task('watch', function() {
gulp.watch('./sass/*.sass', ['sass']);
})
I used gulp-slash but it don't works.
gulp-watch
but not using it. Are you sure this is the exact gulpfile that the problem occurs with?gulp.task('watch', function() { gulp.watch('./sass/*.sass', ['sass']); })
there is my task for watch. when i comment the line.pipe(sass())
the problem is absent, but i have another problem - my sass don't compile to css :)gulp-watch
is a separate library.gulp.watch
is part of gulp. Are you using the latest versions of all modules?gulp-ruby-sass
do you have?