sentry-javascript: @sentry/nextjs not working

Package + Version

  • next 10.2.0
  • @sentry/nextjs 6.3.3

Description

next.config.js

const { withSentryConfig } = require('@sentry/nextjs')

module.exports = withSentryConfig({}, {})

sentry.client.config.js sentry.server.config.js

import * as Sentry from '@sentry/nextjs'

Sentry.init({
	dsn: process.env.NEXT_PUBLIC_SENTRY_DSN
})

Result

error - ./node_modules/@sentry/node/esm/integrations/console.js:19:0
Module not found: Can't resolve 'console'

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 22 (7 by maintainers)

Most upvoted comments

@iker-barriocanal Thanks for the support 😃

@iker-barriocanal Thanks for your help! I just worked fine for me. THANKS!!!