title: gulp-sass 5 does not have a default Sass compiler; please set one yourself
body: <p>Error in plugin &quot;gulp-sass&quot;
  Message:</p>
  <p>gulp-sass 5 does not have a default Sass compiler; please set one yourself.
  Both the <code>sass</code> and <code>node-sass</code> packages are permitted.
  For example, in your gulpfile:</p>
  <pre><code>var sass = require('gulp-sass')(require('sass'));
  </code></pre>
  <p>This is my code below . It says var sass = require('gulp-sass')(require('sass')); in the error but I am using import and none of the solution worked for me
  I am new to this and the cli version is 2.3.0 local version is 4.0.2
  please give me a solution I am stuck here for days</p>
  <pre><code>import gulp from 'gulp';
  import sass from 'gulp-sass';
  import yargs from 'yargs';
  
  
  const PRODUCTION = yargs.argv.prod;
  
  export const styles = () =&gt; {
      return gulp.src('src/assets/scss/bundle.scss')
        .pipe(sass().on('error', sass.logError))
        .pipe(gulp.dest('dist/asset/css'));
  }
  </code></pre>