appleboy / appleboy/gulp-compass

Error with gulp-changed since update to 2

Open
#102 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
172
Forks
54
PR merge metrics
No merged PRs in 30d

Description

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:

``` javascript
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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure in the sass-desktop task using the shown Gulp pipeline, then inspect node_modules/gulp-changed/index.js around the mtime comparison. Compare behavior before and after the gulp-compass 2.1.0 update, and document a confirmed compatible fix or alternative for gulp-changed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, sass
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.