Answer the question
In order to leave comments, you need to log in
How to fix error when running GULP-a Error in plugin “gulp-sass”?
The first time I run Galp, the following error occurs in the terminal:
The folder hierarchy is correct. First I run the npm i command, after that gulp
the error says that there is no built-in sass compiler in version 5 of gulp. separately installed it with the command npm install sass gulp-sass --save-dev
And still this error occurs. Help please, how to treat this?
Answer the question
In order to leave comments, you need to log in
Try declaring a variable like this, it worked for me
let sass = require('gulp-sass')(require('sass'));
const gulp = require('gulp'),
browserSync = require('browser-sync').create(),
pug = require('gulp-pug');
const sass = require('gulp-sass')(require('sass'));
But before that I had to reinstall gulp to version 4-1-2
Thanks everyone!
Adding const sass = require('gulp-sass')(require('sass')); helped me too .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question