Skip to content

Cannot use 'in' operator to search for 'props' in undefined #7516

@Kartik4152

Description

@Kartik4152

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. bundle.tracing.min.js) in your SDK setup.

@sentry/nextjs

SDK Version

7.42.0

Framework Version

Next 13.0.0

Link to Sentry event

https://qoohoo.sentry.io/issues/3944950556/?project=6053874&query=is%3Aunresolved&referrer=issue-stream&sort=freq&statsPeriod=14d

SDK Setup

 Sentry.init({
    dsn:
      SENTRY_DSN,
    // Adjust this value in production, or use tracesSampler for greater control
    tracesSampleRate: 1.0,
    // debug: process.env.USER_ENV !== "production",
    environment: process.env.USER_ENV || process.env.NODE_ENV,
    // ...
    // Note: if you want to override the automatic release value, do not set a
    // `release` value here - use the environment variable `SENTRY_RELEASE`, so
    // that it will also get attached to your source maps
  });

Steps to Reproduce

Randomly getting serverSideProps as undefined in Sentry's internal code leading to unnecessary logs on sentry.

Expected Result

No error

Actual Result

image

Metadata

Metadata

Assignees

Labels

Package: nextjsIssues related to the Sentry Nextjs SDK

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions