You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey team Sentry. Promising product evolution for sure, we are eager to try to integrating our logs with our error reporting. We've been added to the pilot, upgraded to @sentry/[email protected] and @sentry/[email protected] and added import * as Sentry from '@sentry/nextjs' to our central logging lib.
Now when we start the Next.js (15.2.3) frontend, we get an error Export logger doesn't exist in target module. I've traced this down to an import of Sentry.logger in our middleware.ts, where we log each incoming request. I'm slightly puzzled, as I assumed this code is only used server-side, but it looks like it's somehow imported into the clientside bundle at least in development.
Hey team Sentry. Promising product evolution for sure, we are eager to try to integrating our logs with our error reporting. We've been added to the pilot, upgraded to
@sentry/[email protected]
and@sentry/[email protected]
and addedimport * as Sentry from '@sentry/nextjs'
to our central logging lib.Now when we start the Next.js (15.2.3) frontend, we get an error
Export logger doesn't exist in target module
. I've traced this down to an import of Sentry.logger in ourmiddleware.ts
, where we log each incoming request. I'm slightly puzzled, as I assumed this code is only used server-side, but it looks like it's somehow imported into the clientside bundle at least in development.Anything I should be trying differently? Here's a minimal repro: https://github.com/stefnnn/next-turbo-middleware
Originally posted by @stefnnn in #15916 (comment)
The text was updated successfully, but these errors were encountered: