Skip to content

withSentryConfig breaks hot reloading in NextJS app dir #8324

@bkrausz

Description

@bkrausz

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

7.55.0

Framework Version

18.2.0

Link to Sentry event

No response

SDK Setup

Any

Steps to Reproduce

Clone and follow README: https://github.com/bkrausz/sentry-next-hmr-repro

I originally thought this only happened across module aliases, but that doesn't seem to be the case in my minimum repro.

Expected Result

HMR should work

Actual Result

HMR doesn't work

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions