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
[Self-hosted] Cannot read properties of undefined (reading 'getInitialProps') #8792
Comments
Hi, this seems like a bug in the SDK. My questions:
|
This is still happening for me, even with the above change in (on @sentry/nextjs@7.64.0). Here's a URL of it in action (the two iFrame subscribe boxes): https://news.kiwistand.com/subscribe Using The page in question is a rewritten route, if that helps. It's rewritten from /[blogName]/embed to /[blogName]/subscribe within the What's strange is this is only happening when the page is in an iFrame. When it's viewed in a regular URL, there's no exception. |
@seeARMS I can't see any errors on the page you shared. Do I need to put news.kiwistand.com/subscribe into an iframe? |
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/browser
SDK Version
7.62.0
Framework Version
Next 13.4.11
Link to Sentry event
No response
SDK Setup
Sentry.init({
dsn:
dsn
,// Replay may only be enabled for the client-side
enabled: true,
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 0.1
// Capture Replay for 10% of all sessions,
// plus for 100% of sessions with an error
// ...
// Note: if you want to override the automatic release value, do not set a
//
release
value here - use the environment variableSENTRY_RELEASE
, so// that it will also get attached to your source maps
})
Steps to Reproduce
next.config.js
filethis is the configuration content related to the sentry
createPlugin
fileconfigSentryWebpackPlugin
filesentry.config.ts
filesentry.client.config.ts, sentry.server.config.ts, sentry.edge.config.ts
file.env
: here is some sentry envand when I run
pnpm build
, it will occur some error like thisI found there is a solution at #5978 and #5984. Unfortunately, it does not work for me. I don't know if is there any difference between saas and self-hoisted.
Expected Result
upload the sourcemap successfully.
Actual Result
The text was updated successfully, but these errors were encountered: