sentry-javascript: @sentry/nextjs not working
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
- Provide a link to the affected event from your Sentry account
Package + Version
next10.2.0@sentry/nextjs6.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)
@iker-barriocanal Thanks for the support 😃
@iker-barriocanal Thanks for your help! I just worked fine for me. THANKS!!!