Skip to content

NextJs 15.3 shows warning after adding Sentry #16091

Closed

Description

@ChristianKohler

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

Framework Version

15.3

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. Install NextJs 15.3
  2. Add Sentry using the wizard
  3. Run npm run dev
  4. See the following warning

Expected Result

No warning or a better way to understand that this warning comes in combination with Sentry. Since this is a NextJs warning I started to look into the turbopack configuration..

Actual Result

next dev --turbopack

   ▲ Next.js 15.3.0 (Turbopack)
   - Local:        http://localhost:3000
   - Network:      http://192.168.215.4:3000
   - Experiments (use with caution):
     · clientTraceMetadata

 ✓ Starting...
 ✓ Compiled instrumentation Node.js in 379ms
 ✓ Compiled instrumentation Edge in 134ms
 ✓ Ready in 1210ms
++ ⚠ Webpack is configured while Turbopack is not, which may cause problems.
++ ⚠ See instructions if you need to configure Turbopack:
  https://nextjs.org/docs/app/api-reference/next-config-js/turbo

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Apr 17, 2025
  2. lforst commented on Apr 17, 2025

    @lforst
    Contributor

    This is known but you can safely ignore it. Next.js emits this warning because the Sentry SDK defines a webpack callback field and when you run with turbopack Next.js warns you in case it is critical for your app to run the webpack callback.

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Apr 17, 2025
  4. lforst commented on Apr 17, 2025

    @lforst
    Contributor

    We can potentially fix this in the future when we only support Next.js versions that set the process.env.TURBOPACK env var when turbopack is used. Right now we need to unconditionally add the webpack callback because we cannot reliably detect turbopack due to old versions.

    Maybe we can also add some flag to the SDK that will skip over adding this field.

  5. franzwilhelm commented on Jun 5, 2025

    @franzwilhelm

    +1 on this. Your solution sounds good @lforst

  6. 4 remaining items

  7. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jun 26, 2025
  8. csulit commented on Jun 27, 2025

    @csulit

    Any update on this?

  9. RulaKhaled commented on Jun 27, 2025

    @RulaKhaled
    Collaborator

    Not yet. I'll assign this and see what we can do

  10. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jun 27, 2025
  11. seanparkross commented on Jul 12, 2025

    @seanparkross

    +1

  12. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jul 12, 2025
  13. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jul 14, 2025
  14. self-assigned this
    on Jul 15, 2025
  15. github-actions commented on Jul 15, 2025

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #17013, which was included in the 9.39.0 release.

  16. seanparkross commented on Jul 31, 2025

    @seanparkross

    🕺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions