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
Bug description
@primer/cssdeclares"@primer/primitives": "^7.15.12"as a peer dependency,but projects using
@primer/primitives@^11.x(current major) end up with aversion conflict where
dist/scssno longer exists in v11.Inside
node_modules/@primer/css/color-modes/themes/light.scss:This path does not exist in
@primer/primitives@11.x, causing SCSS compilationto fail entirely, especially visible on Windows where the webpack resolver
cannot fall back gracefully.
Suggested fix
Either update
@primer/cssto use the new@primer/primitivesv11 API,or clearly document the version constraint in the README.
References
Environment
@primer/css: 21.5.1@primer/primitivesinstalled: 11.3.1@primer/primitivesexpected by@primer/css: ^7.15.12