757 questions
1
vote
1
answer
52
views
Building sass with gulp - includePaths not having any effect
I am attempting to build a sass file that imports bootstrap from the node_modules folder.
I have added the bootstrap source folder to the includePath list.
But for some reason, the gulp compiler is ...
0
votes
0
answers
43
views
Gulp, node-sass and gulp-core-build-sass all failed installing?
I had it with npm packages. I tried installing gulp to run gulp trust-dev-cert on my would-be-deployed application. It wouldn't install as it runs on an error:
npm error code 1
npm error path C:\Users\...
0
votes
1
answer
170
views
"gulp-sass" and "sass" with ES module is not working , when try to get css from scss files
I’m using Gulp v5.0 to compile, minify, and clean the CSS for my application. I've migrated from CommonJS to ES Modules (ESM) in my Gulp setup.
There’s a custom component (maintained by another team) ...
2
votes
2
answers
5k
views
How to Silence Deprecation Warning in Gulp Sass Task - "The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0."
My current installation is the follow:
Node - v20.18.0 Gulp - v5.0.0 Gulp-Sass - v5.1.0 Sass - v1.80.6
My gulpfile.js:
const gulp = require("gulp");
const sass = require("gulp-sass&...
0
votes
1
answer
521
views
How to satisfy stylelint "context" check, without causing gullp errors?
My code:
@media (min-width: 965px) {
#my-class {
justify-content: flex-end;
}
}
is causing stylelint to throw this error:
✖ Expected "context" media feature media-...
2
votes
1
answer
339
views
TypeError: Cannot assign to read only property 'ctime' of object '#<Stats>'
I have a simple gulp file setup that compiles scss to css and then continues to watch for changes during development, I am developing an electron app based on node (v22.0.0)
It was working before when ...
0
votes
1
answer
87
views
Can I use sass instead of node-sass in suiteCommerce project?
I am using mac system.
chip : apple M2
macOS : Ventura 13.4
i was trying to install suiteCommerce Theme Developer Tool, but ran into following problem
when i was trying to install node-sass v7.0.0, ...
2
votes
2
answers
4k
views
Sass - TypeError: Cannot read properties of undefined (reading 'indexOf')
My build on the server failed today, suddenly, when doing its Sass thing it's always done for 4 years.
It runs in Docker so the image probably has a later npm than I have locally, since I don't tend ...
0
votes
0
answers
139
views
gulp-sass : combine multiple scss into one scss file
I am using gulp npm package to bundle the scss files into one single scss file in angular 13. I am facing issues like,
Error: Can't find stylesheet to import.
╷
1 │ @use '@angular/material' as mat;
...
0
votes
2
answers
905
views
Gulp error when running: Gulp-sass no longer has a default Sass compiler; please set one yourself
I am getting the following error message when trying to run my gulp script.
`
gulp-sass no longer has a default Sass compiler; please set one yourself.
Both the "sass" and "node-sass&...
1
vote
0
answers
280
views
How to watch entire directory of scss and compile files separately in their own sub-folders?
I have a css folder with sub-folders populated with scss files. How can I watch the whole folder and automatically generate a separate style.css file on change for every folder.
`--css
--content
...
1
vote
1
answer
220
views
GULP | Gulp imagemin takes too much time to convert images
Here is my gulpfile.js code:
"use strict"
const { src, dest } = require("gulp")
const gulp = require("gulp")
const autoprefixer = require("gulp-autoprefixer")
...
0
votes
1
answer
268
views
Gulp 4: watch task has to be a function
I have a problem with the watch task on SCSS using Gulp 4. I've looked at the documentation on gulp-sass and the various threads on the topic but still I must be making some very banal mistake, as I ...
0
votes
1
answer
4k
views
Error in plugin gulp-sass when running gulp styles
Sass error I am receiving when I run "gulp styles"
Current versions:
npm -v 8.11.0
node -v 16.16.0
Computer specs:
macOS Monterey 12.2.1
Processor:3.3 GHz 6-Core Intel Core i5
username@...
2
votes
0
answers
241
views
Cannot find module 'gulp-cli'
Error: Cannot find module 'gulp-cli'
Require stack:
- /usr/local/lib/node_modules/gulp/bin/gulp.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)
at Function....
1
vote
1
answer
469
views
Nested scss variables not compiling with gulp
I'm using gulp to compile my scss files. Everything worked until I got a new laptop, and now the nested variables aren't compiling.
For example, none of these colors compile:
$theme-colors: (
...
1
vote
1
answer
349
views
Gulpfile not compiling Scss & JS properly
I am trying to create a gulpfile.js to compile scss to css and JS components to a main JS file. But it's not working properly.
The issues i am facing, when I run the command gulp:
It doesn't compile ...
0
votes
1
answer
349
views
Gulp: Migrating Gulpfile.js from gulp 3 to 4
Here i am trying to migrate my existing site which is using gulp 3. Now upgrading gulp from 3 to 4.
Below is Gulpfile.js
'use strict';
var gulp = require('gulp'),
autoprefixer = require('gulp-...
1
vote
2
answers
6k
views
Error: File not found with singular glob: (if this was purposeful, use `allowEmpty` option)
I am trying to automate a task with watch, in gulp. I am a beginner at this.
This is code:
const { series, src, dest, watch } = require('gulp');
const sass = require('gulp-sass');
// Función que ...
0
votes
1
answer
224
views
Can't compile using gulp
Whenever I try and run either yarn install or npm install I get:
libsass/src/libsass/src/sass_values.o Release/obj.target/libsass/src/libsass/src/source_map.o Release/obj.target/libsass/src/libsass/...
0
votes
1
answer
434
views
Why when upgrading to Node.js 16.13.0 (with its nmp 8) I can't stop sass error output?
As a result of upgrading to Node.js 16.13.0 with its nmp 8 I ran into a problem with Sass. I had to update gulp-sass to version 5.0.0, additionally install [email protected] and fix in gulpfile.js the sass ...
0
votes
1
answer
1k
views
Failure to run the Gulp task runner and error while running Gulp Command
I inside the folder where the project is located through the command:
npm i gulp gulp-sass sass --save-dev
I have installed Gulp, but when I want to run it with this command in vs.code terminal :
...
0
votes
1
answer
206
views
gulp doesn't run the page
With some update, the gulp from new projects stopped starting. Reworked the popular answers to this question, but my build with other users is different. I haven’t climbed into the javascript yet, and ...
1
vote
1
answer
2k
views
gulp-sass 5 does not have a default Sass compiler scss files to compile
I am working on a project just starting with gulp, and I am getting this error :
gulp-sass 5 does not have a default Sass compiler; please set one yourself
when I run gulp styles
I have tried a lot ...
1
vote
2
answers
331
views
gulp sass not writing to destination directory
I've started using the gulp-sass 5.
It's behaviour seems different from gulp-sass 4, requiring different configuration.
I've managed to figure out how to get it reading scss files.
But I can't figure ...