Skip to content

test(nextjs): Bump nextjs-16 E2E app to Next.js 16.4.2 - #25686

Merged
mydea merged 6 commits into
developfrom
fix/nextjs-16-webpack-e2e
Oct 23, 2026
Merged

mydea merged 6 commits into
developfrom
fix/nextjs-16-webpack-e2e

Conversation

@mydea

@mydea mydea commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

The nextjs-16 (webpack) E2E job fails on every branch because prerendering throws Could not find the module ".../app/global-error.tsx#default" in the React Client Manifest. That comes from a bug in Next.js 16.3.8: its client reference manifest plugin skips a client component whose webpack concatenated module got the id 0, because it checks the id for truthiness. Next.js fixed this in 16.4.0 (vercel/next.js#97936), so this bumps the app's pinned next to 16.4.2. 16.3.8 is the last 16.3 release, so there's no 16.3 patch to pin to instead.

Production module ids are deterministic hashes of the module identifiers, and those include the pnpm directory names of the loaders. The job started failing on the same develop commit that had passed a few hours earlier. The only dependency in the lockfile published in between is webpack 5.112.1, which changes the peer suffix in the @sentry/nextjs directory name. That's very likely what moved app/global-error.tsx to id 0 on CI. Locally the paths differ, so the ids differ too. Forcing the id to 0 reproduces the failure on 16.3.8, and the same build passes on 16.4.2. The latest webpack variant already runs 16.4.x and kept passing.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 274cc2d (PR test merge using develop at a4cf21f)

Against: a4cf21f (develop) · base run #63265

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 29.98 kB - -
@sentry/browser - with treeshaking flags 28.12 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.02 kB - -
@sentry/browser (incl. Tracing) 52.16 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.16 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.11 kB - -
@sentry/browser (incl. Tracing, Replay) 91.95 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 80.84 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 96.69 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 109.62 kB - -
@sentry/browser (incl. Feedback) 47.5 kB - -
@sentry/browser (incl. sendFeedback) 35.04 kB - -
@sentry/browser (incl. FeedbackAsync) 40.15 kB - -
@sentry/browser (incl. Metrics) 31 kB - -
@sentry/browser (incl. Logs) 31.27 kB - -
@sentry/browser (incl. Metrics & Logs) 31.93 kB - -
@sentry/react 31.8 kB - -
@sentry/react (incl. Tracing) 54.49 kB - -
@sentry/vue 38.13 kB - -
@sentry/vue (incl. Tracing) 55.1 kB - -
@sentry/svelte 30 kB - -
@sentry/remix (Remix 3 client bundle) 57.19 kB - -
CDN Bundle 31.74 kB - -
CDN Bundle (incl. Tracing) 52.7 kB - -
CDN Bundle (incl. Logs, Metrics) 33.94 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 54.65 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.92 kB - -
CDN Bundle (incl. Tracing, Replay) 90.4 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 92.32 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 96.54 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.49 kB - -
CDN Bundle - uncompressed 93.49 kB - -
CDN Bundle (incl. Tracing) - uncompressed 156.34 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.04 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 162.31 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 230.25 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 276.69 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 282.64 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 290.39 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 296.33 kB - -
@sentry/nextjs (client) 57.38 kB - -
@sentry/sveltekit (client) 52.54 kB - -
@sentry/core/server 41.85 kB - -
@sentry/core/browser 13.81 kB - -
@sentry/node 152.96 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.58 kB - -
@sentry/node - without tracing 94.57 kB - -
@sentry/node - without channel injection 133.6 kB +0.01% +1 B 🔺
@sentry/aws-serverless 102.74 kB - -
@sentry/cloudflare (withSentry) - minified 193.71 kB - -
@sentry/cloudflare (withSentry) 481.82 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 214.62 kB - -

View base workflow run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

All optional checks were successful. 31 successful. See the run.

Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E angular (canary) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-4 (canary) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 27s Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-orpc Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (canary, turbopack) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nuxt-4-static (canary) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E angular (canary) Test (optional) Successful in 55s Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (canary) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (canary, webpack) Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E nuxt-3 (canary) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 22s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E astro-7-static Test (optional) Successful in 57s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 21s Details
✅ CI: Optional E2E Tests / E2E nextjs-16-standalone (canary, turbopack) Test (optional) Successful in 25s Details
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 54s Details
✅ CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 25s Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E vue-3 (canary) Test (optional) Successful in 55s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Successful in 2m Details

mydea and others added 4 commits October 23, 2026 10:32
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Next.js 16.3.8 drops a client component from the client reference manifest
when webpack gives its concatenated module the id 0, because it checks the
id for truthiness. The deterministic module ids depend on the module
identifiers, which include the pnpm directory names of the loaders. Since
webpack 5.112.1 was published, the peer suffix of @sentry/nextjs changed and
`app/global-error.tsx` got the id 0 on CI, so prerendering failed. Next.js
16.4.0 fixed the check (vercel/next.js#97936).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mydea mydea changed the title test(nextjs): Fix nextjs-16 webpack E2E build test(nextjs): Bump nextjs-16 E2E app to Next.js 16.4.2 Oct 23, 2026

@s1gr1d s1gr1d left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@mydea
mydea marked this pull request as ready for review October 23, 2026 09:11
@mydea
mydea merged commit 6df508e into develop Oct 23, 2026
256 checks passed
@mydea
mydea deleted the fix/nextjs-16-webpack-e2e branch October 23, 2026 09:11
s1gr1d pushed a commit that referenced this pull request Oct 23, 2026
The `nextjs-16 (webpack)` E2E job fails on every branch because
prerendering throws `Could not find the module
".../app/global-error.tsx#default" in the React Client Manifest`. That
comes from a bug in Next.js 16.3.8: its client reference manifest plugin
skips a client component whose webpack concatenated module got the id
`0`, because it checks the id for truthiness. Next.js fixed this in
16.4.0 (vercel/next.js#97936), so this bumps the app's pinned `next` to
16.4.2. 16.3.8 is the last 16.3 release, so there's no 16.3 patch to pin
to instead.

Production module ids are deterministic hashes of the module
identifiers, and those include the pnpm directory names of the loaders.
The job started failing on the same develop commit that had passed a few
hours earlier. The only dependency in the lockfile published in between
is webpack 5.112.1, which changes the peer suffix in the
`@sentry/nextjs` directory name. That's very likely what moved
`app/global-error.tsx` to id `0` on CI. Locally the paths differ, so the
ids differ too. Forcing the id to `0` reproduces the failure on 16.3.8,
and the same build passes on 16.4.2. The `latest` webpack variant
already runs 16.4.x and kept passing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 6df508e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants