GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CSS dependencies end up as [Object object] · Issue #21671 · webpack/webpack

CSS dependencies end up as [Object object] #21671

New issue
Copy link
New issue
Copy link
Closed
Bug
#21672
Closed
CSS dependencies end up as [Object object]#21671
Bug
#21672
Copy link
Labels
area: cssCSS support (lib/css)needs: reproductionNo runnable minimal reproduction yetregressionWorked in a previous release; pair with the Affected version field

Description

@mariusGundersen
mariusGundersen
opened on Aug 10, 2026
Issue body actions

Have you used AI?

No

Which part of webpack is affected?

css

Bug Description

It seems like the path to an asset used in CSS isn't generating properly. Instead of the string path it produces the string [object%20Object]. This applies both to svg and font files referenced in the css.

Link to Minimal Reproduction and steps to reproduce

This is for the main project I work on every day, so the webpack config file is rather large. The relevant css configuration is:

{
        test: /\.css$/,
        use: [
            extract && MiniCssExtractPlugin.loader,
            {
                loader: 'css-loader',
                options: {
                    // this configures the css-modules, see https://webpack.js.org/loaders/css-loader/#modules
                    modules: {
                        auto: true,
                        localIdentName: envName === 'production' ? '[hash:base64]' : '[local]-[hash:base64]',
                        exportLocalsConvention: 'camelCase',
                        exportOnlyLocals: !extract,
                    },
                    sourceMap: true,
                    url: extract,
                },
            },
            {
                loader: 'postcss-loader',
                options: {
                    sourceMap: true,
                    postcssOptions: {
                        plugins: [
                            'postcss-import',
                            postcssGlobalData({
                                files: ['./src/css/media-queries.css'],
                            }),
                            'postcss-preset-env',
                        ].filter(Boolean),
                        config: false,
                    },
                },
            },
        ].filter(Boolean),
    }

Expected Behavior

I should be able to specify src: url('../fonts/robot.woff2') format('woff2'); and have the url be updated to the output asset path.

Actual Behavior

Instead it produces the following:

@font-face {
    font-family: 'Roboto';
    src: url("..//[object%20Object]") format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

Environment

System:
    OS: Linux 7.0 Linux Mint 22.3 (Zena)
    CPU: (12) x64 Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz
    Memory: 49.87 GB / 62.43 GB
  Binaries:
    Node: 22.6.0 - /home/marius/.nvm/versions/node/v22.6.0/bin/node
    npm: 10.8.2 - /home/marius/.nvm/versions/node/v22.6.0/bin/npm
  Browsers:
    Firefox: 153.0.1
    Firefox Developer Edition: 153.0.1
  Packages:
    babel-loader: ^10.0.0 => 10.0.0 
    copy-webpack-plugin: ^13.0.1 => 13.0.1 
    css-loader: ^7.1.4 => 7.1.4 
    css-minimizer-webpack-plugin: ^7.0.4 => 7.0.4 
    eslint-webpack-plugin: ^5.0.2 => 5.0.2 
    expose-loader: ^5.0.1 => 5.0.1 
    favicons-webpack-plugin: ^6.0.1 => 6.0.1 
    fork-ts-checker-webpack-plugin: ^9.1.0 => 9.1.0 
    hook-shell-script-webpack-plugin: ^0.4.0 => 0.4.0 
    postcss-loader: ^8.2.1 => 8.2.1 
    style-loader: ^4.0.0 => 4.0.0 
    terser-webpack-plugin: ^5.3.16 => 5.6.1 
    webpack: 5.109.2 => 5.109.2 
    webpack-cli: ^6.0.1 => 6.0.1 
    webpack-hot-middleware: ^2.26.1 => 2.26.1 
    webpack-manifest-plugin: ^6.0.1 => 6.0.1 
    webpack-node-externals: ^3.0.0 => 3.0.0

Is this a regression?

Yes (please specify version below)

Last Working Version

5.108.4

Additional Context

No response

Reacted by coderabbitai

Activity

  1. mariusGundersen
    added the
    Bug
    issue type on Aug 10, 2026
  2. coderabbitai commented on Aug 10, 2026

    @coderabbitai
    coderabbitaiBot
    on Aug 10, 2026 – with coderabbitai
    Contributor
    More actions
    🔗 Related PRs

    #21648 - feat(css): join adjacent rules and fold four more value spellings [open]
    #21653 - feat(esm): widen analyzable output to HMR, hashed and function chunk filenames [open]
    #21655 - fix(webmanifest): rewrite icon URLs at byte offsets [open]
    #21658 - fix(css): leave @namespace URIs alone [open]
    #21663 - feat: configure or exclude each asset type's minifier via optimization.minimize [open]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  3. coderabbitai
    added
    area: cssCSS support (lib/css)
    needs: reproductionNo runnable minimal reproduction yet
    regressionWorked in a previous release; pair with the Affected version field
    on Aug 10, 2026
  4. alexander-akait
    closed this as completedin #21672on Aug 10, 2026
  5. mariusGundersen commented on Aug 11, 2026

    @mariusGundersen
    mariusGundersen
    on Aug 11, 2026
    ContributorAuthor
    More actions

    When will the fix be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: cssCSS support (lib/css)needs: reproductionNo runnable minimal reproduction yetregressionWorked in a previous release; pair with the Affected version field

    Type

    Bug

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.