Skip to main content

I received a error message when enabling debug mode, why?

Updated over a month ago

Issue

When we activate the debug mode, we have this warning :

[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.

Applies To

  • Customer using the Next.js SDK

Resolution

The @sentry/nextjs SDK includes a debug bundle by default. This warning likely appears because debug mode was previously disabled through tree shaking. You can learn more about this configuration here:
​https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/tree-shaking/

Did this answer your question?