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.28.1
Framework Version
NextJs v11.1.4
Link to Sentry event
No response
Steps to Reproduce
We want to try out the new Sentry replay feature, but we were using Sentry v6.13.3 so we try to upgrade to v7.28.1
- install @sentry/nextjs v7.28.1
- run a next js production build
NODE_ENV=production next build
- run a next js export to get the static file version of the app
NODE_ENV=production next export
Expected Result
Export build should not fail.
Actual Result
Next export command is failing.
Based on the below screenshot we can see that the export build failed, due to TypeError: Cannot read property '__sentry_original__' of undefined this seems to happen on all route.
Is there some configuration to be added to avoid those error?


Thank you for your help,
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.28.1
Framework Version
NextJs v11.1.4
Link to Sentry event
No response
Steps to Reproduce
We want to try out the new Sentry replay feature, but we were using Sentry v6.13.3 so we try to upgrade to v7.28.1
NODE_ENV=production next buildNODE_ENV=production next exportExpected Result
Export build should not fail.
Actual Result
Next export command is failing.
Based on the below screenshot we can see that the export build failed, due to
TypeError: Cannot read property '__sentry_original__' of undefinedthis seems to happen on all route.Is there some configuration to be added to avoid those error?
Thank you for your help,