gulp-sass 5 does not have a default Sass compiler; please set one yourself

I had this problem and found that adding the standard sass npm npm install --save-dev sass and then adding the second section of the error message to my variable so that it looks like this const sass = require('gulp-sass')(require('sass')); worked.

Leave a Comment