Skip to content
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

withSentryConfig breaks hot reloading in NextJS app dir #8324

Closed
3 tasks done
bkrausz opened this issue Jun 13, 2023 · 6 comments
Closed
3 tasks done

withSentryConfig breaks hot reloading in NextJS app dir #8324

bkrausz opened this issue Jun 13, 2023 · 6 comments
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK Stale Type: Bug

Comments

@bkrausz
Copy link

bkrausz commented Jun 13, 2023

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

@bkrausz bkrausz changed the title withSentryConfig break hot reloading in NextJS app dir withSentryConfig breaks hot reloading in NextJS app dir Jun 13, 2023
@lforst
Copy link
Member

lforst commented Jun 20, 2023

Thanks for writing in. We'll take a look!

@lforst lforst added the Package: nextjs Issues related to the Sentry Nextjs SDK label Jun 20, 2023
@LemonDouble
Copy link

I know it sounds weird, but if you're using Chrome, could you try installing React Devloper Tools Chrome Extension?
https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en

I had a similar issue, I installed the extension and Hot Reload worked fine.
I realize this isn't a fundamental solution, but it seems like a simple thing to try.

@getsantry
Copy link

getsantry bot commented Oct 20, 2023

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Oct 20, 2023
@lforst
Copy link
Member

lforst commented Oct 20, 2023

We might have fixed this in the latest release.

@ethan-crabb
Copy link

Still facing this issue with "@sentry/nextjs": "^7.94.1" and "next": "^14.2.4"

@lforst
Copy link
Member

lforst commented Jul 1, 2024

@ethan-crabb please upgrade to the latest SDK version and if the problem persists, it is best to open a new issue. Thanks!

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 Stale Type: Bug
Projects
Archived in project
Development

No branches or pull requests

6 participants