Closed isaac-martin closed 1 year ago
Hi, is this just affecting next dev
or also next build && next start
? Also, the newer versions of the SDK are most likely not compatible with next-compose-plugins
, since that package doesn't respect the fact that next configurations can return functions (which withSentryConfig
does out of necessity).
Edit: Some subjective and unasked-for opinions. Looking at next-compose-plugins
, I really recommend not using it anymore. It got updated last two years ago and it's only a matter of time until it causes more problems.
Yeah i actually found this issue and was able to solve based on the content in here.
https://github.com/getsentry/sentry-javascript/issues/6447
Thanks for the response
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/nextjs
SDK Version
7.23.0
Framework Version
7.23.0
Link to Sentry event
No response
Steps to Reproduce
After upgrading sentry to @sentry/next js to
7.23.1
we no longer get events sent.this PR i believe is the culprit https://github.com/getsentry/sentry-javascript/pull/6267 and looking at the code and the description that makes sense.
Our configs are below, and im wndering if its something in the ts-node register that is causing next to exclude the
withSentryConfig
from the bundle.I also tried with just the sentry plugin and not using the
next-compose-plugins
and still was not able to send eventsnext.config.ts looks like the below
next.config.js is this which compiles the next.config.ts
Expected Result
Sentry sends events
Actual Result
No events are sent via sentry, and I observe no network calls being made.