I
I
Ivan Efimov2022-01-08 12:25:06
Node.js
Ivan Efimov, 2022-01-08 12:25:06

How to remove the second Sass compiler?

gulp-sass no longer has a default Sass compiler; please set one yourself.
Both the "sass" and "node-sass" packages are permitted.
For example, in your gulpfile: const sass = require('gulp-sass')(require('sass'));

I lift the project on a new workplace. Perhaps someone has already installed something like this on this PC. Checked: 1) local folder "node_modules"; 2. ...\AppData\Local\npm-cache; 3) ...\AppData\Roaming\npm\node_modules;
Deleted these folders, reinstalled resources, reinstalled NODE JS and recreated the project in a new folder.

Directly in the file, the function calls the line "const sass = require('gulp-sass');"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2022-01-08
@Ivan_Efimov

The new package no longer has a default compiler.
You now have to install node-sass or sass (dart implementation) yourself and enable it.
How to do this is in the documentation of the new version https://www.npmjs.com/package/gulp-sass in the "Migration to version 5" section.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question