Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry Feedback Integration Not Working in pnpm Monorepo with Turborepo #14946

Open
3 tasks done
Slyracoon23 opened this issue Jan 8, 2025 · 1 comment
Open
3 tasks done
Labels
Package: browser Issues related to the Sentry Browser SDK

Comments

@Slyracoon23
Copy link

Slyracoon23 commented Jan 8, 2025

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.10.0

Framework Version

Nextjs 14.2.15

Link to Sentry event

No response

Reproduction Example/SDK Setup

import * as Sentry from "@sentry/nextjs";

Sentry.init({
  dsn: "https://xxxxxxxxxxxxxxxx.ingest.us.sentry.io/xxxxxxxxxxx",
  enabled: process.env.NODE_ENV === "production",
  integrations: [
    Sentry.feedbackIntegration({
      colorScheme: "system",
    }),
  ],
  tracesSampleRate: 1,
  replaysSessionSampleRate: 0.1,
  replaysOnErrorSampleRate: 1.0,
  debug: false,
});

Steps to Reproduce

  • Set up a pnpm monorepo with Turborepo
  • Install @sentry/nextjs in a Next.js workspace
  • Configure Sentry with feedbackIntegration as shown above
  • Build and run the application

Expected Result

Sentry feedback widget should be visible and functional in the application.

Actual Result

Feedback integration fails to initialize properly in the pnpm monorepo environment. No feedback widget is displayed, and no errors are logged in the console.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 8, 2025
@github-actions github-actions bot added the Package: browser Issues related to the Sentry Browser SDK label Jan 8, 2025
@chargome
Copy link
Member

chargome commented Jan 9, 2025

@Slyracoon23 can you check the logs when you set debug: true in the init call and disableLogger: false in your withSentryConfig?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: browser Issues related to the Sentry Browser SDK
Projects
Status: No status
Development

No branches or pull requests

2 participants