-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Sentry not found on nextjs #15258
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
Comments
@vespa7 thanks for reaching out! So there's nothing that immediately calls my attention on why this would fail. Could you set Best case would you be able to condense this issue to a reproducible example that we could clone and inspect? |
Hi @chargome! I'm working with @vespa7. Here is the repro. Sorry for the weird library needed to reproduce |
Just to see if I was lucky I searched for issues with |
@Ceres6 ah yeah, good find! Let's close this in favour of getsentry/sentry-javascript-bundler-plugins#530 and continue there. Thanks for making the effort of a repro though! |
Sure - no problem! Happy to help with the fix if wanted |
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.53.0
Framework Version
14.2.21
Link to Sentry event
https://everest-194.sentry.io/issues/28603450/events/4b675f23fd164b2bb5ac69ac711013f1/
Reproduction Example/SDK Setup
TypeError: Cannot read properties of undefined (reading 'sentry')
next.config.js
instrumentation.ts
sentry.(sever|edge).ts
sentry.client.config.ts
middleware.ts
Steps to Reproduce
next build && next start
and every client-side page fails (only on build mode, dev mode works okay)Expected Result
sentry is found
Actual Result
TypeError: Cannot read properties of undefined (reading 'sentry')
The text was updated successfully, but these errors were encountered: