Skip to content
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

fix: Add missing Error.getInitialProps calls in Next.js error page snippets #632

Merged
merged 4 commits into from
Aug 1, 2024
Merged

fix: Add missing Error.getInitialProps calls in Next.js error page snippets #632

merged 4 commits into from
Aug 1, 2024

Conversation

Pikachews
Copy link
Contributor

Without this call, the following error occurs when the Error page is invoked:

TypeError: Cannot set properties of undefined (setting '_sentryTraceData')

as described in getsentry/sentry-javascript#5906

Copy link
Member

@lforst lforst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@lforst lforst changed the title Add missing Error.getInitialProps calls in Next.js error page snippets fix: Add missing Error.getInitialProps calls in Next.js error page snippets Jul 31, 2024
@lforst lforst changed the title fix: Add missing Error.getInitialProps calls in Next.js error page snippets fix: Add missing Error.getInitialProps calls in Next.js error page snippets Aug 1, 2024
@lforst lforst merged commit 3623f08 into getsentry:master Aug 1, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants