Skip to content

colorette issue stack overflow while author wants to save recursive string replace #5427

Open
@Delagen

Description

@Delagen

Bug report

You should pin version of colorette or just remove it from dependencies

Because latest version cause stack overflow in some cases cause of recursive implementation.

jorgebucaran/colorette#106

Actual Behavior

On the end of build during output stats

/.../node_modules/colorette/index.cjs:49
const replaceClose = (
^
RangeError: Maximum call stack size exceeded
at replaceClose (/.../node_modules/colorette/index.cjs:49:22)
...
at replaceClose (/.../node_modules/colorette/index.cjs:57:32)

Expected Behavior

Should work at any size of output statistics

How Do We Reproduce?

Seems it caused by huge amount of output warnings

Please paste the results of npx webpack-cli info here, and mention other relevant information

System:
OS: Windows 11 10.0.27774
CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
Memory: 12.87 GB / 31.93 GB
Binaries:
Node: 23.9.0 - D:\data\nodejs\node.EXE
npm: 10.9.2 - D:\data\npm\npm.CMD
Browsers:
Edge: Chromium (133.0.3065.69)
Packages:
copy-webpack-plugin: 12.0.2 => 12.0.2
css-minimizer-webpack-plugin: 7.0.0 => 7.0.0
exports-loader: 5.0.0 => 5.0.0
expose-loader: 5.0.0 => 5.0.0
imports-loader: 5.0.0 => 5.0.0
ngx-uploader: 17.0.1 => 17.0.1
null-loader: 4.0.1 => 4.0.1
postcss-loader: 8.1.1 => 8.1.1
sass-loader: 16.0.4 => 16.0.4
style-loader: 4.0.0 => 4.0.0
ts-loader: 9.5.2 => 9.5.2
val-loader: 6.0.0 => 6.0.0
webpack: 5.97.1 => 5.97.1
webpack-bundle-analyzer: 4.10.2 => 4.10.2
webpack-cli: 6.0.1 => 6.0.1
webpack-stats-plugin: 1.1.3 => 1.1.3
worker-loader: 3.0.8 => 3.0.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions