Skip to content

"Rendered more hooks than during the previous render" for @sentry/nextjs^9.12.0 #16029

@maiconcarraro

Description

@maiconcarraro

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.12.0

Framework Version

Next 15.3.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

I found no pattern yet to replicate this, it just started receiving random events related to this after migrating to Next 15.1.7 -> 15.3.0 and @sentry/nextjs 8.54.0 -> 9.12.0

Steps to Reproduce

Not found yet.

Expected Result

Cause no errors, or detailed information about it.

Actual Result

There are 2 different issues, but with the same error:

This one points to sentry codebase
Image

This one points to next codebase
Image

Could be related to this: vercel/next.js#63121
I'm not using Router.replace, but I'm using Router.push and had no issues previously.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions