question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

not working with gulp 4.0

See original GitHub issue

Task did not finish Starting gulpSass…


var gulp = require('gulp');
var sass = require('gulp-sass');

var paths = {
  sass:    'src/css/**/*.scss',
 };
gulp.task('sass', function () {
  return sass(paths.sass)
    .on('error', sass.logError)
    .pipe(gulp.dest('src/css'));
});
function watch() {
  livereload.listen();
  ...
  gulp.watch(paths.sass, sass);
}

gulp.task('build',  gulp.parallel(sass, ... watch));

gulp.task('default', gulp.series('build'));

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:22

github_iconTop GitHub Comments

5reactions
loganhensoncommented, Nov 23, 2015

@TeodorKolev I wanted to post the actual issue (in case you hadn’t resolved it)…

You are actually calling gulp-sass (the npm module, which is not a gulp task) directly, instead of the sass task. Try naming you sass task something different and it will complete properly. Hope that helps anyone who made the same mistake and ends up here!

0reactions
glen-84commented, Dec 11, 2015

Ah, I forgot about your PR. So this can be closed then?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gulp 4 watch not working, only run one time - Stack Overflow
I changed from Gulp 3 to Gulp 4, but I can't get it to work. When I run gulp and save SCSS or...
Read more >
gulp 4 file changes tracking with not working #2394 - GitHub
If the bug is in a plugin, open an issue on the plugin repository, not the gulp repository. If you're getting a deprecated...
Read more >
Fixing gulp-sass issues in gulp 4. - DEV Community ‍ ‍
This article is not the full definitive gulp article that I promised to post. This article is an important fix for gulp-sass in...
Read more >
A quick guide for switching to gulp 4 | by Jhey Tompkins
A new version of gulp is here. What do you need to know? Will your gulpfile s break? There are various changes listed...
Read more >
gulp.start is not a function - Material Design for Bootstrap
Gulp 4 no longer accepts start, you need to use either series which will run the tasks one after the other (as the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found