gulp.src('/abc/src/styles/bootstrap5/env.scss') fails with a "RangeError: Maximum call stack size exceeded" error in anymatch after upgrading to Gulp 5.x. We are not using a gulpfile in this case, we just import the gulp package and use gulp.src() with a single src file.
Complete error:
RangeError: Maximum call stack size exceeded
at /abc/node_modules/anymatch/index.js:94:12
at EventEmitter.onPath (/abc/node_modules/glob-stream/index.js:270:20)
at EventEmitter.emit (node:events:518:28)
at EventEmitter.emit (node:domain:488:12)
at processDirents (/abc/node_modules/glob-stream/index.js:88:10)
at next (/abc/node_modules/now-and-later/lib/mapSeries.js:43:5)
at handler (/abc/node_modules/now-and-later/lib/mapSeries.js:57:9)
at f (/abc/node_modules/once/once.js:25:25)
at processDirents (/abc/node_modules/glob-stream/index.js:113:7)
at next (/abc/node_modules/now-and-later/lib/mapSeries.js:43:5)
Node.js v20.11.1
gulp.src('/abc/src/styles/bootstrap5/env.scss') fails with a "RangeError: Maximum call stack size exceeded" error in anymatch after upgrading to Gulp 5.x. We are not using a gulpfile in this case, we just import the gulp package and use gulp.src() with a single src file.
Complete error:
Sample code:
Please provide the following information:
node -v
): v20.11.1npm -v
): 10.2.4gulp -v
): 5.0.0