Skip to content

[Bug] @primer/primitives version mismatch breaks SCSS imports on Windows when webpackImporter is disabled #3052

@anarefolio

Description

@anarefolio

Bug description

@primer/css declares "@primer/primitives": "^7.15.12" as a peer dependency,
but projects using @primer/primitives@^11.x (current major) end up with a
version conflict where dist/scss no longer exists in v11.

Inside node_modules/@primer/css/color-modes/themes/light.scss:

@import '@primer/primitives/dist/scss/colors/_light.scss'; // dist/scss removed in v11

This path does not exist in @primer/primitives@11.x, causing SCSS compilation
to fail entirely, especially visible on Windows where the webpack resolver
cannot fall back gracefully.

Suggested fix

Either update @primer/css to use the new @primer/primitives v11 API,
or clearly document the version constraint in the README.

References

Environment

  • @primer/css: 21.5.1
  • @primer/primitives installed: 11.3.1
  • @primer/primitives expected by @primer/css: ^7.15.12

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