Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-sveltekit-peer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'flags': patch
---

Remove `@sveltejs/kit` from peer dependencies. It was declared as an optional peer with a `"*"` range, which caused npm to auto-install the newest `@sveltejs/kit` and drag in its transitive `@sveltejs/vite-plugin-svelte` → `vite` peer chain. In non-SvelteKit projects already on Vite 7 (via Vitest, Storybook, etc.) this produced a hard `ERESOLVE` error requiring `npm install --force`. SvelteKit consumers always have `@sveltejs/kit` installed as the framework, so the `flags/sveltekit` entrypoint continues to resolve it from their own tree.
5 changes: 1 addition & 4 deletions packages/flags/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"@types/node": "20.11.17",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"@sveltejs/kit": "2.53.4",
"@vitejs/plugin-react": "4.2.1",
"msw": "2.6.4",
"next": "16.2.6",
Expand All @@ -97,7 +98,6 @@
},
"peerDependencies": {
"@opentelemetry/api": "^1.7.0",
"@sveltejs/kit": "*",
"next": "*",
"react": "*",
"react-dom": "*"
Expand All @@ -106,9 +106,6 @@
"@opentelemetry/api": {
"optional": true
},
"@sveltejs/kit": {
"optional": true
},
"next": {
"optional": true
},
Expand Down
Loading
Loading