Skip to content

fix(sveltekit): remove @sveltejs/kit optional peer dependency#172

Merged
HugoRCD merged 2 commits intomainfrom
fix/remove-sveltejs-kit-peer-dep
Mar 14, 2026
Merged

fix(sveltekit): remove @sveltejs/kit optional peer dependency#172
HugoRCD merged 2 commits intomainfrom
fix/remove-sveltejs-kit-peer-dep

Conversation

@HugoRCD
Copy link
Copy Markdown
Owner

@HugoRCD HugoRCD commented Mar 14, 2026

Summary

  • Remove @sveltejs/kit from peerDependencies and peerDependenciesMeta, it was never imported (the SvelteKit integration defines its own compatible types locally), so npm was unnecessarily resolving its transitive dependency tree
  • This fixes ERESOLVE failures when installing [email protected] in non-SvelteKit projects (e.g. Nuxt 4) where @sveltejs/vite-plugin-svelte@7 pulls in vite@^8.0.0, conflicting with Vite 7.x

Closes #171

The SvelteKit integration defines its own compatible types locally and
never imports from @sveltejs/kit. Having it as a peer dependency causes
npm to resolve its full transitive tree, pulling in
@sveltejs/vite-plugin-svelte@7 which requires vite@^8.0.0 — conflicting
with projects using Vite 7.x (e.g. Nuxt 4).

Closes #171
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
evlog-docs Ready Ready Preview, Comment, Open in v0 Mar 14, 2026 1:58pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 14, 2026

Thank you for following the naming conventions! 🙏

@github-actions github-actions bot added the bug Something isn't working label Mar 14, 2026
@HugoRCD HugoRCD self-assigned this Mar 14, 2026
@HugoRCD HugoRCD merged commit dbe07ca into main Mar 14, 2026
10 of 11 checks passed
@HugoRCD HugoRCD deleted the fix/remove-sveltejs-kit-peer-dep branch March 14, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[email protected] install fails in non-SvelteKit projects due to @sveltejs/kit optional peer dependency resolution

1 participant