Skip to content

Commit 81aaacd

Browse files
committed
fix(deps): pin styled-components to ^6.3.9 to avoid npm ci ERESOLVE
The 6.4.0 bump I landed a few commits ago introduced a transitive peer-dependency loop that crashes `npm ci` in a fresh environment: styled-components@6.4.0 └── peerDependenciesMeta.react-native = { optional: true } └── react-native@0.85.2 └── peer @types/react@"^19.1.1" └── collides with Strapi 5's React 18 tree styled-components treats react-native as optional, so it installs fine locally when no react-native is resolvable. But npm in CI mode greedily resolves the optional chain and then explodes when @types/react@19 hits the project-wide React 18 peer graph. Fix: pin back to 6.3.x (6.3.9 is the last release before the react-native peer was added). No features between 6.3 and 6.4 are in use, so the rollback is a pure hygiene fix.
1 parent 3fa37a1 commit 81aaacd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"react-intl": "^7.1.14",
6666
"react-router-dom": "^6.30.1",
6767
"semantic-release": "^25.0.3",
68-
"styled-components": "^6.4.0"
68+
"styled-components": "^6.3.9"
6969
},
7070
"peerDependencies": {
7171
"@strapi/design-system": "^2.0.0",

0 commit comments

Comments
 (0)