### Is there an existing issue for this? - [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues - [X] I have reviewed the documentation https://docs.sentry.io/ - [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases ### 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 