Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which package are you using?
@sentry/nextjs
SDK Version
7.8.0
Framework Version
7.8.0
Link to Sentry event
No response
Steps to Reproduce
Use latest Sentry with NextJS
Expected Result
Should behave like 7.7.0 and not throw an error when building
Actual Result
