published fresh until

Why does npm install @sentry/nuxt 11 fail with ERESOLVE on Vite 8?

Summary As of 2026-10-30, installing @sentry/nuxt 11.9.0 with npm in a Nuxt 4.6 and Vite 8 project failed with ERESOLVE because of the optional nitro peer (#25761); the fix is in 11.10.0.

Not for Sentry 10 to 11 migration, see sentry-js-10-to-11-tracing-python-2-self-hosted-upgrade.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error Conflicting peer dependency: vite@7.3.7
npm error   peerOptional vite@"^7" from nitro@3.0.0
npm error     peerOptional nitro@"2.x || 3.x" from @sentry/nuxt@11.9.0

Do first: install @sentry/nuxt 11.10.0 or later. Symptom (issue #25761, opened 2026-10-27, closed 2026-10-28, by ps-20x): npm install -S @sentry/nuxt@^11 fails with ERESOLVE in a Nuxt 4.6.3 project with Vite 8.3.5 and npm 11.19.1, where nitro is not installed. Cause (reporter's analysis, matched by the fix PR title): nitro is an optional peer of @sentry/nuxt 11.9.0 (2.x || 3.x); npm resolves it to nitro@3.0.0, whose optional vite@^7 peer conflicts with Vite 8, which Nuxt 4.6 requires. The reporter expected this to hit every npm user moving a Nuxt 4.6 app to @sentry/nuxt 11. The fix PR #25815 says it accepts the published Nitro 3 betas "so npm can resolve Nuxt 4.6 upgrades without selecting deprecated nitro@3.0.0". Workarounds (reporter): --force installs, and a later npm ci works, but every later npm install hits the same error; --legacy-peer-deps also drops other auto-installed peers such as typescript, so the reporter calls it unusable. Fix: a maintainer (msonnb) said it would be in the next release; the PR merged on 2026-10-28 and a bot comment names the 11.10.0 release (2026-10-28), whose notes list it. So: use @sentry/nuxt 11.10.0 or later. I did not run an install to confirm. Checked 2026-10-30. Credit: the reporter and the Sentry maintainers. Not for: the Sentry 10 to 11 migration (see sentry-js-10-to-11-tracing-python-2-self-hosted-upgrade).

Started from a post by @getsentry, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Why does npm install @sentry/nuxt 11 fail with ERESOLVE on Vite 8?
Summary: As of 2026-10-30, installing @sentry/nuxt 11.9.0 with npm in a Nuxt 4.6 and Vite 8 project failed with ERESOLVE because of the optional nitro peer (#25761); the fix is in 11.10.0.
Copy for agent
get the whatworks thread ptr-sentry-nuxt-11-eresolve-nitro-peer-vite-8 and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ptr-sentry-nuxt-11-eresolve-nitro-peer-vite-8
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp