Repository navigation
test(nuxt): Use Nuxt's own Nitro and add db0 in nuxt-5 E2E app - #26095
Merged
Merged
Conversation
Co-Authored-By: Francesco Gringl-Novy <francesco.novy@sentry.io>
Contributor
size-limit report 📦Compared: aee1577 (PR test merge using develop at 4d85171) Against: 4d85171 (develop) · base run #64969 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 2 not successful, 51 successful. See the run.
Successful checks
|
mydea
reviewed
Nov 4, 2026
| "Currently, we need to install the latest version of Nitro and the Nuxt nightlies as those contain Nuxt v5", | ||
| "TODO: remove nitro from dependencies", | ||
| "Currently, we need to install the Nuxt nightlies as those contain Nuxt v5", | ||
| "Nitro is not a direct dependency on purpose: Nuxt brings its own version, and a second copy breaks `nitro/h3` in dev mode and splits the KV storage that the SDK instruments", |
Member
There was a problem hiding this comment.
we can drop this note here instead
mydea
marked this pull request as ready for review
November 4, 2026 11:57
mydea
requested review from
Lms24,
andreiborza,
logaretm and
mydea
and removed request for
a team
November 4, 2026 11:57
mydea
approved these changes
Nov 4, 2026
mydea
enabled auto-merge (squash)
November 4, 2026 11:57
andreiborza
approved these changes
Nov 4, 2026
mydea
disabled auto-merge
November 4, 2026 12:02
Nitro 3.0.261103-rc no longer installs db0 on demand in CI, and the app's nitro.database config needs it. Co-Authored-By: Francesco Gringl-Novy <francesco.novy@sentry.io>
mydea
added a commit
that referenced
this pull request
Nov 4, 2026
**Why:** The nuxt-5 app depended on `nitro: latest` (now `3.0.261103-rc`) next to the Nuxt nightly, which depended on `^3.0.261029-rc`. A caret range on a prerelease doesn't match the newer RC, so pnpm installed both versions. In dev mode, Vite then fails to load the app's `nitro/h3` from the second copy (`Failed to load url nitro/h3 … Does the file exist?`), which breaks the optional `nuxt-5` dev tests and `nuxt-5 (tunnel-dev)`. With the `kv` cache driver, Nitro's cache and `@sentry/nuxt` also end up on different `useKV` storages, so no cache spans are recorded. Dropping the direct dependency (the existing TODO) leaves Nuxt's own Nitro as the only copy. The Nuxt nightly from Nov 4 moved to Nitro `3.0.261103-rc`, which no longer installs `db0` on demand in CI, so the app's `nitro.database` config failed the build (including the required `nuxt-5 (tunnel-basepath)` job). The app now depends on `db0` directly. **Unsure about:** `test:build-canary` still runs `pnpm add nitro@npm:nitro-nightly@latest`, so the canary build could end up with two copies again. I left it alone because it isn't part of these failures. <!-- junior-request-attribution:start --> via **Francesco Gringl-Novy**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AD0CA8FXFXAS%3A1793366214.663899 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AD0CA8FXFXAS%3A1793366214.663899) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0CA8FXFXAS%3A1793366214.663899/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Francesco Gringl-Novy <francesco.novy@sentry.io>
51 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why: The nuxt-5 app depended on
nitro: latest(now3.0.261103-rc) next to the Nuxt nightly, which depended on^3.0.261029-rc. A caret range on a prerelease doesn't match the newer RC, so pnpm installed both versions. In dev mode, Vite then fails to load the app'snitro/h3from the second copy (Failed to load url nitro/h3 … Does the file exist?), which breaks the optionalnuxt-5dev tests andnuxt-5 (tunnel-dev). With thekvcache driver, Nitro's cache and@sentry/nuxtalso end up on differentuseKVstorages, so no cache spans are recorded. Dropping the direct dependency (the existing TODO) leaves Nuxt's own Nitro as the only copy.The Nuxt nightly from Nov 4 moved to Nitro
3.0.261103-rc, which no longer installsdb0on demand in CI, so the app'snitro.databaseconfig failed the build (including the requirednuxt-5 (tunnel-basepath)job). The app now depends ondb0directly.Unsure about:
test:build-canarystill runspnpm add nitro@npm:nitro-nightly@latest, so the canary build could end up with two copies again. I left it alone because it isn't part of these failures.via Francesco Gringl-Novy.
--
View Session [Sentry]