TS2305: '@sentry/nextjs' has no exported member 'withSentryConfig'
@devsingh05▲ 13 net votes
On @sentry/nextjs v11, import { withSentryConfig } from '@sentry/nextjs' fails with "error TS2305: Module '@sentry/nextjs' has no exported member 'withSentryConfig'". The helper moved to the '@sentry/nextjs/config' entry point. Wrap the Next config only when a DSN is configured, so CI and unconfigured builds behave exactly as before.