12,688 questions
            
            
            0
            votes
        
        
            0
            answers
        
        
            17
            views
        
    Sass @use 'bootstrap/scss/bootstrap' failing with 'Can't find stylesheet to import' in minimal project
                I'm encountering a persistent issue where Sass is unable to resolve the import path for Bootstrap, even in a minimal test project. I'm using gulp-sass with Dart Sass.
Here's the problem:
I'm trying to ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            23
            views
        
    Worker terminated due to reaching memory limit: JS heap out of memory" while running npm run gulp vscode-linux-x64 [closed]
                Distributor ID: Ubuntu
Description:    Ubuntu 24.04.2 LTS
Release:    24.04
Codename:   noble
When I was building the VSCode source code into a .deb package on Ubuntu , I executed the command:
npm run ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            25
            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) ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            61
            views
        
    How can I replace node-sass module?
                I'm trying to start my website again after few years but can not change the code because my gulpfile.js for the compiler does not start.
Terminal says that the reasoin is that node-sass I used before ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            40
            views
        
    My SCSS files are not getting saved in css folder with Gulp
                I am running my gulp task for compiling my scss files and then convert them to css.
The scss files are getting compiled correctly in the cli. But the css files are not getting saved.
Below is my scss ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            18
            views
        
    Gulp copying old versions of files
                I've just discovered that Gulp is refusing to copy the new version of some font files in one of my projects. I have something like below:
/assets
/classes
/dist
/lib
/sass
mainfile.php
otherfile.php
...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            27
            views
        
    When creating a SharePoint Solution package from Github, I keep getting legacy errors and modules not found. What am I missing?
                I have been using SP-Dev-Webparts repository to clone and (attempt) to install some solutions available. I've had mixed results in terms of success, some packages will go through and create the ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            30
            views
        
    is pdfjs-dist external library is compatible for chrome extension , if yes then what are the step to add into plugin?
                I want to extract data from a PDF file in my plugin and use the data for information. I am trying with pdfjs-dist, but it breaks my gulp-building process, showing pdf-dist as an external dependency. ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            18
            views
        
    How to install Gulp on a server, using cPanel's "Setup Node.js App" option
                For some security reasons, Hawkhost the hosting company, won't let me install Gulp on my hosting via SSH. After contacting tech support, they said I should use the "Setup Node.js App" in the ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            38
            views
        
    How do I fix Error: EPERM: operation not permitted from a gulp task?
                [13:04:33] Finished 'deploy_resource_packs' after 10 ms
[13:04:33] 'watch_scripts' errored after 2.21 s
[13:04:33] Error: EPERM: operation not permitted, watch
    at FSWatcher._handle.onchange (node:...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            31
            views
        
    How can I "finish" the gulp serve when I didn't write the gulp?
                I'm new to working with javascript and I've been requested to add my project to a SharePoint.
After making the changes, I save all the files in VSCode and then use Ctrl+C in the terminal to stop the ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            89
            views
        
    npm-install error - npm ERR! code 1 - Node Modules Sharp failed
                Anyone's help appreciated on this. I've already had four front end developers trying to work this one out. No joy.
I have an environment set up, highly adapted from this one:
https://github.com/...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            29
            views
        
    Error with primordials not defined when running Node.js with Gulp and Angular CLI
                I’m running Node.js version v22.12.0 and Gulp version CLI version: 3.0.0 and Local version: 5.0.0. When I try to run my project with Angular CLI, I encounter the following error:
fs.js:44
} = ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            40
            views
        
    Tailwindcss beta 1 postcss gulp not working
                I'm trying to construct the simplest possible Tailwindcss 4 Beta 1 postcss gulp pipeline. It runs with no error, but no css file is outputted to the dest directory.
My gulp.js file:
const
    { src, ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            25
            views
        
    Terminated gulp watch
                I am using jquery and express (maybe) project.
This project node version is 12
If I run
gulp watch
Then It work.
But after I change my script file because of editing code,
[10:47:42] Finished 'js' ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            8
            views
        
    MS Teams Meeting App - gulp ngrok-serve error
                I get the error below when I run gulp bgrok-serve
>>gulp ngrok-serve --debug  
[16:34:54] Found additional Yo Teams plugin: yoteams-deploy
[16:34:54] Using gulpfile ~\OneDrive - HEGELMAT\Desktop\...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            38
            views
        
    Gulp 5 not compile if src have multiple items
                I have a problem with Gulp because it doesn't compile if there is more than one specific element in the SRC. I need multiple files to be compiled on the JS, PHP and IMG.
Node: 23.1.0
NPM: 10.9.1
Gulp: ...
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            122
            views
        
    When I use mix() in dart-sass, the output is rgb() instead of HEX(#)
                I use [email protected] , [email protected] on Mac.
The gulp task are as follows.
import { src, dest, series, watch } from 'gulp';
import * as dartSass from 'sass';
import gulpSass from 'gulp-sass';
const ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            741
            views
        
    Gulp and "SASS: Deprecation The legacy JS API" Warning?
                As many others, I've recently begun to get this error whenever I compile my SASS.
Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
No matter what I do, I ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            39
            views
        
    Not found problem in Vercel deployment using Gulp
                I have tried to deploy a site on Vercel using Github, however it doesn't work.
I didnt use any of frameworks.
By the way, when i had only one page it worked perfectly.
Here is my gulpfile.js
My build ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            15
            views
        
    How to debug errors in Gulp?
                I'm on a project that is using Gulp to compile and run tasks. I'm facing an error with the gulp-file-include plugin that will throw this error in console PluginError: Expected double-quoted property ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            36
            views
        
    gulp-uglify expects an object, non-object provided
                I have an old project and have to add a filter to remove an item from the array of objects if the condition is true. I am getting the below error when trying to run gulp build.
[14:44:03] Using ...
            
        
       
    
            -2
            votes
        
        
            1
            answer
        
        
            64
            views
        
    odd behavior when using gulp with Deno 2
                Now that Deno 2 supports npm, I'm trying to use gulp in Deno 2. But I'm getting odd behavior that's causing me to doubt this will work. I'll provide the list of steps I used later, but first, here's ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            11
            views
        
    Error in building legacy solution using jspm packages
                I am trying to build a legacy solution which is using jspm packages but getting below error:
Error on fetch for npm:[email protected] at file:///C:/KeskoUpgrade/My%20K%20Keskonet/...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            43
            views
        
    Does Webpack need an entry and output?
                I am migrating an old gulp project over to webpack, and wondered if it was possible to make a webpack project that doesn't require the entry and output options, I have a series of tasks that need ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            18
            views
        
    My sprite.svg file showing only one/first element, project compiler is gulp
                The icon-location icon is displayed correctly, but other icons such as icon-mail are not displayed. I have tried clearing the cache and reloading the page, but the problem persists.
<svg xmlns=&...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            31
            views
        
    Why is ccsnano messing up the css of bootstrap styles in gulp builder?
                .pipe(sassGlob())
.pipe(sass(["last 2 version", "> 2%"]))
.pipe(autoprefixer())
.pipe(cssbeautify())
.pipe(gulp.dest("./dist/assets/css/"))
.pipe(cssnano())
.pipe(
    rename({
        suffix: "....
            
        
       
    
            2
            votes
        
        
            1
            answer
        
        
            3k
            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
        
        
            0
            answers
        
        
            22
            views
        
    Trying to download dependencies, but got "Build failed with error code: 1"
                I got a great portfolio template from Start Bootstrap, but I ran into an issue installing dependencies. There is no node_modules folder after running npm i. This is my package.json:
{
  "title&...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            24
            views
        
    Glup/Rollup/babel-preset-minify requires await on rollup.rollup() for multiple files in same function
                I want to verify that the statement in the title is true, and see if anyone can provide an explanation and/or a workaround. If I only work with one .js file, it works without the async/await. Adding ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            17
            views
        
    stream.on('exit') in gulp-nodemon
                I'm a newbie to gulp. So this question might be obvious.
var gulp = require('gulp');
var shell = require('gulp-shell');
var nodemon = require('gulp-nodemon');
var fs = require('fs');
fs.readdirSync(...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            191
            views
        
    Having a trouble with gulp-imagemin
                I'm having a trouble with gulp-imagemin. When I test the minify-image task, it can't run. I tried a lot of ways to fix it but every time it had a problem. Can someone help me to fix this? I need this ...
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            49
            views
        
    Why is npm library not a function?
                There is a problem with npm library for html minify. I downloaded and declared a library
import htmlmin from 'html-minifier'; 
but when i try to run a gulp task
export const html = () => {
  ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            18
            views
        
    Multiple Node.js builds in different subfolders with different node versions with one command possible?
                I'm working on a project, a WordPress plugin for the Divi theme, with the following file structure:
root
gulpfile.js
package.json
/src/divi4
gulpfile.js
package.json
/src/divi5
gulpfile.js
...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            16
            views
        
    Folder font not sent from src to dest
                The folder with fonts from the working area is not moved to the public one.
Tell me, there are fonts in the folder, I don’t know why it doesn’t transfer them to the final project.
font: {
  src: `${...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            35
            views
        
    Gulp pattern matching - match all scss files
                My test function looks like:
function taskBuildStyles() {
  let path1 = 'Amtsverwaltung_Achterwehr/Web/styles/source/web_v1.scss';
  let path2 = 'Amtsverwaltung_Achterwehr/Web/styles/source/*.scss';
 ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            15
            views
        
    Babel is NOT working well with the super keyword
                I have this package.json:
{
  "name": "theme1",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            41
            views
        
    How to use merge-stream with ES6 imports?
                I'm using Gulp 5, and I converted my Gulpfile to use modules instead of CommonJS. It mostly works but I'm having trouble with the merge-stream package. Here's the minimal version of my original code:
...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            177
            views
        
    BrowserSync throws aggregate Error with Gulp 5/Node.js v.20
                I am attempting to rebuild my gulpfile.js after upgrading to Gulp 5 and the most recent stable version of Node.js (20.11.1). The gulpfile below works just fine with Node.js version 16.14.0, but is ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            128
            views
        
    How to Pass Variables between Nested Includes in Gulp File Include?
                I'm using gulp-file-include to build my HTML files and I'm running into an issue with passing variables between nested include files.
File Structure:
.
├── index.html
└── template-parts
    └── common
...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            40
            views
        
    Why don't folders delete in gulp tasks? [duplicate]
                This task work ok. I use path ".wwwroot/css/site.min.css"
var gulp = require("gulp");
const fs = require('fs').promises;
gulp.task('clean', async function (done) {
    try {
      ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            34
            views
        
    scssTask Errored during Gulp-Sass execution
                I'm just starting out with Gulp via VS Code but I can't seem to get it working.
Here is my Gulp file:
// Initialize modules
const { src, dest, watch, series } = require('gulp');
const sass = require('...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            95
            views
        
    LitElement with SASS
                I am currently using Lit to learn more about custom web components and I am trying to use .scss files to render an style for my components; but I can't find a way to compile the scss files in a way ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            80
            views
        
    gulp 5 src() make the images format unsupported
                I have some images in my project that I want to compress them using gulp
But first I want to move them to the dist folder so I made this simple task
function test(){
    return src("src/images/*&...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            55
            views
        
    Uncaught SyntaxError with DOMPurify 3.1.6 and 2.4.9: Invalid Regular Expression due to ${...} in Minified Files
                I was using DOMPurify 2.3.10 with Gulp for minifying files, and everything worked fine. However, after upgrading to versions 3.1.6 or 2.4.9, I'm getting the following error:
Uncaught SyntaxError: ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            41
            views
        
    Compiling Angular 12.2.17 code as a library, get the following error Error: No supported format property to consider among [tsconfig-aot.json]
                I'm having the following error:
Error: No supported format property to consider among [tsconfig-aot.json]. Supported properties: fesm2015, fesm5, es2015, esm2015, esm5, main, module, browser
I am ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            21
            views
        
    gulp nunjucksRender not compiling html files
                I am trying to render nunjucks .njk files into HTML file
This gulpfile.js...
var gulp = require("gulp");
var nunjucksRender = require("gulp-nunjucks-render");
var browserSync = ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            57
            views
        
    Docker & Gulp Browser Sync
                I'm migrating my WordPress projects from Wamp to Docker ( WSL) and I have problems getting Gulp to work properly. The changes to CSS are not seen, although Gulp successfully compiles assets as well as ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            68
            views
        
    SVG element not displaying in production mode
                I'm facing an issue with viewing the svg elements in production mode, it worked totally fine in development mode (localhost). Me and my team are suspecting it is the issue with the gulp.
<img src=&...
            
        
       
    
            4
            votes
        
        
            1
            answer
        
        
            1k
            views
        
    Bootstrap 5.3.3 _type.scs has waring on compile with Gulp
                I am using Bootstrap 5.3.3 in my project and compile using gulp.js
I see warning on every save change.
below message see on terminal.
Deprecation Warning: Sass's behavior for declarations that appear ...