dtoiu 2021-07-13 20:26 采纳率: 0%
浏览 609

前端构建工具报错gulp-sass not have a default Sass compiler

D:\HB\hello>gulp sasstask
[20:00:22] Using gulpfile D:\HB\hello\gulpfile.js
[20:00:22] Starting 'sasstask'...
Error in plugin "gulp-sass"
Message:

gulp-sass 5 does not have a default Sass compiler; please set one yourself.
Both the `sass` and `node-sass` packages are permitted.
For example, in your gulpfile:

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

[20:00:22] The following tasks did not complete: sasstask
[20:00:22] Did you forget to signal async completion?

img

  • 写回答

3条回答 默认 最新

  • 关注

    楼主这个问题解决了吗

    评论

报告相同问题?

问题事件

  • 创建了问题 7月13日