Skip to content

Incorrect path names being passed to CSS loader. #368

Closed
@phyllisstein

Description

@phyllisstein

After upgrading from 4.1.1 to 5.0.0, I noticed that the CSS loader, with modules enabled, was generating colliding hashes for different components in my application. I did a little poking around and discovered that the paths being passed to the loader are not accurate: when my localIdentName is set to [path][name]__[local]--[hash:base64], I see Webpack pulling in CSS from multiple files (e.g., app/components/logo-header/styles.scss and app/components/input/styles.scss, both of which define a class .root) but giving them the same identifier (e.g., .app-components-logo-header-styles__root--TqfiOWwF9tjvyCbNgxKoY, where one should have that identifier and the other should have .app-components-input-styles__root with a unique hash).

I'm working on putting together a minimum working example reproducing the bug, but I'd be grateful for any thoughts you had in the meantime. Thanks in advance for your help, and thanks for all your hard work on this repo!

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