Skip to content

Getting getModuleEvaluationSideEffectsState(moduleGraph) error #20986

@abecirovic-mo

Description

@abecirovic-mo

Have you used AI?

Copilot

Bug Description

After updating webpack to 5.107.0
I got following error.
Image

Copilot suggested that the cycle detection in getModuleEvaluationSideEffectsState is missing a visited-set guard, so creating issue for this.

Link to Minimal Reproduction and step to reproduce

Updating to 5.107.0 and running the build

Expected Behavior

Succeesful build

Actual Behavior

Build fails with an error

Environment

System:
    OS: macOS 26.4.1
    CPU: (10) arm64 Apple M2 Pro
    Memory: 101.95 MB / 16.00 GB
  Binaries:
    Node: 24.14.0 - /Users/almirbecirovic/.nvm/versions/node/v24.14.0/bin/node
    Yarn: 1.22.22 - /Users/almirbecirovic/.nvm/versions/node/v24.15.0/bin/yarn
    npm: 11.9.0 - /Users/almirbecirovic/.nvm/versions/node/v24.14.0/bin/npm
  Browsers:
    Safari: 26.4
  Packages:
    babel-loader: ^9.1.3 => 9.2.1 
    clean-webpack-plugin: ^4.0.0 => 4.0.0 
    copy-webpack-plugin: ^5.0.3 => 5.1.2 
    css-loader: ^5.0.1 => 5.2.7 
    duplicate-package-checker-webpack-plugin: ^3.0.0 => 3.0.0 
    file-loader: ^6.2.0 => 6.2.0 
    html-loader: ^4.2.0 => 4.2.0 
    html-webpack-plugin: ^5.5.3 => 5.6.7 
    imports-loader: ^0.8.0 => 0.8.0 
    loader-utils: ~2.0.3 => 2.0.4 
    postcss-loader: ^7.3.3 => 7.3.4 
    raw-loader: ^4.0.2 => 4.0.2 
    resolve-url-loader: ^5.0.0 => 5.0.0 
    sass-loader: ^13.3.2 => 13.3.3 
    script-loader: ^0.7.2 => 0.7.2 
    script-template-loader: ^1.0.3 => 1.0.3 
    string-replace-loader: ^3.1.0 => 3.3.0 
    style-loader: ^3.3.3 => 3.3.4 
    terser-webpack-plugin: ^5.3.9 => 5.6.0 
    text-loader: 0.0.1 => 0.0.1 
    url-loader: ^4.1.1 => 4.1.1 
    webpack: 5.106.2 => 5.106.2 
    webpack-bundle-analyzer: ^4.10.1 => 4.10.2 
    webpack-cli: ^5.1.4 => 5.1.4 
    webpack-dev-server: ^4.15.1 => 4.15.2 
    webpack-merge: ^5.10.0 => 5.10.0

Is this a regression?

None

Last Working Version

5.106.2

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Question.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions