Commit 2a84b8b
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
(CI, fresh clone, etc.):
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 only 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 the 6.3.x line (6.3.9 is the last release before
the react-native peer was added). styled-components did not ship any
features between 6.3 and 6.4 that we were depending on, so the
rollback is a pure hygiene fix.
Verified with `rm -rf node_modules package-lock.json && npm install`
on all three plugins — resolves cleanly, strapi-plugin build and
strapi-plugin verify both pass.1 parent 91781f5 commit 2a84b8b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments