Skip to content

Next.js v15.4.0+ does not report errors in route handlers #17512

@mjq

Description

@mjq

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

10.8.0

Framework Version

Next 15.5.2

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. Create a Next.js app with pnpm create next-app@latest my-app
  2. Add Sentry using the wizard (pnpx @sentry/wizard@latest -i nextjs --saas --org YOUR_ORG_HERE --project YOUR_PROJECT_HERE)
  3. Run with pnpm run dev, navigate to /sentry-example-page, and click the button

Expected Result

SentryExampleFrontendError and SentryExampleFrontendError issues are created in Sentry

Actual Result

Only the SentryExampleFrontendError issue is created. The SentryExampleFrontendError error is not reported to Sentry.

Metadata

Metadata

Assignees

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions