Skip to content

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

@Slyracoon23

Description

@Slyracoon23

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions