Skip to content

Could not find onRequestError hook in instrumentation file #15551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
jnous-5 opened this issue Mar 3, 2025 · 1 comment · Fixed by #15553
Closed
3 tasks done

Could not find onRequestError hook in instrumentation file #15551

jnous-5 opened this issue Mar 3, 2025 · 1 comment · Fixed by #15553
Assignees
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK

Comments

@jnous-5
Copy link

jnous-5 commented Mar 3, 2025

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

Copy link
Contributor

github-actions bot commented Mar 5, 2025

A PR closing this issue has just been released 🚀

This issue was referenced by PR #15553, which was included in the 9.4.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants