Skip to content

@sentry/nextjs not workingΒ #3480

@wonderlandpark

Description

@wonderlandpark

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nextjsIssues related to the Sentry Nextjs SDK

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions