Skip to content
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

Error with gulp-changed since update to 2 #102

Open
adyz opened this issue Jun 5, 2015 · 0 comments
Open

Error with gulp-changed since update to 2 #102

adyz opened this issue Jun 5, 2015 · 0 comments

Comments

@adyz
Copy link

adyz commented Jun 5, 2015

I've updated from "gulp-compass": "^2.0.3" to "gulp-compass": "^2.1.0" and now I get and error:

/Users/adrian/Desktop/app/node_modules/gulp-changed/index.js:31
            if (sourceFile.stat.mtime > targetStat.mtime) {
                               ^
TypeError: Cannot read property 'mtime' of null
    at /Users/adrian/Desktop/app/node_modules/gulp-changed/index.js:31:23
    at Object.oncomplete (fs.js:108:15)

My gulp task:

gulp.task('sass-desktop', function () {
    return gulp.src('scss/*.scss')
        .pipe(plumber({
            errorHandler: function (error) {
                console.log(error.message);
                this.emit('end');
            }}))
        .pipe(compass({
            config_file: 'config.rb',
            css: 'css',
            sass: 'scss',
            image: 'images',
            debug: false,
            require: ['susy', 'modular-scale']
        }))
        .on('error', function(error) {
            // Would like to catch the error here
            console.log(error);
            this.emit('end');
        })
        .pipe(autoprefixer({
            browsers: ['last 8 versions'],
            cascade: false
        }))
        .pipe(changed('css', {extension: '.css'}))
        .pipe(gulp.dest('css'))
});

Any ideas?

Any alternative for gulp-changed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant