-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Critical dependency warning with require-in-the-middle after upgrading to Sentry 8.52.0 in Next.js app #15209
Comments
Hi, we'll resolve this warning with the next release! |
Awesome, thanks @lforst! |
Hi @lforst, Since upgrading to @sentry/nextjs@8.52.0, I’m encountering the same "require-in-the-middle" Critical Dependency Warning in Next.js. I saw that you mentioned a fix is planned for the next release. For the interim solution, could you clarify: 1️⃣ Which is the latest stable release that does not have this issue? Should we downgrade to @sentry/nextjs@8.51.0, or is there a better version? 2️⃣ Would you recommend suppressing the warning using "ignoreWarnings" in next.config.js, or is downgrading a better approach? 3️⃣ What’s the estimated timeline for the fix in the next release? Thanks in advance for your help! (cc: @getsantry @danielkoller) |
@sousounibajis just jumping in for Luca real quick:
|
Sorry for the troubles everyone! |
Hey, I'm getting the same error using
|
@colaquecez does 8.52.1 fix it for you? |
Hey @Lms24, it doesn't:
|
I am able to reproduce this issue in my NextJS application. It seems to me like the issue is related to using Turbopack as I am not seeing the same warning using Webpack. Steps to reproduce:
I created this repository with a reproducible example |
Thanks @ComeOnNiklas , didn't realize this was related to turbopack! Pleaser refer to #8105 |
@chargome I have not had time but might have some next week to make some proper test. |
This error was getting annoying - the Sentry team appear to be addressing this already, #8105, however there are a couple things you can do to silence this warning. Don't use TurboRunning Add an
|
For me, I remove the warnings by adding these lines to the
For reference: vercel/next.js#76247 |
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
8.52.0
Framework Version
React 19.0.0 & Next.js 15.1.6
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
Expected Result
No critical dependency warnings during development server startup.
Actual Result
The text was updated successfully, but these errors were encountered: