Skip to content

Could not find onRequestError hook in instrumentation file #15551

Description

@jnous-5

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

9.3.0

Framework Version

Next 14.2.24

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. Build any Next.js < 15 project and the following warning is logged.

Image

Expected Result

Since onRequestError hook is only available on v15+, it should not show any warning when running Next.js <15.

Actual Result

Throws the following warning during build.

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions