Skip to content

Next.js error TypeError: (0 , _sentry_nextjs__WEBPACK_IMPORTED_MODULE_11__.feedbackIntegration) is not a functionΒ #15977

@hbmartin

Description

@hbmartin

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

9.11.0

Framework Version

Next 15.2.4

Link to Sentry event

No response

Reproduction Example/SDK Setup

I am unable to import and use feedbackIntegration.

I have my instrumentation-client.ts configured as:

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

Sentry.init({
  dsn: "dsn",

  // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
  tracesSampleRate: 1,

  // Setting this option to true will print useful information to the console while you're setting up Sentry.
  debug: false,

  integrations: [
    Sentry.feedbackIntegration({
      showBranding: false,
      autoInject: false,
    }),
  ],
});

Steps to Reproduce

Either of these blocks:

import { feedbackIntegration } from "@sentry/nextjs";
...
const feedback = feedbackIntegration({
  // Disable the injection of the default widget
  autoInject: false,
});

OR

import * as Sentry from "@sentry/nextjs";
...
const feedback = Sentry.feedbackIntegration({
  // Disable the injection of the default widget
  autoInject: false,
});

Expected Result

The import should work or there should be docs on correct import

Actual Result

Next.js error TypeError: (0 , _sentry_nextjs__WEBPACK_IMPORTED_MODULE_11__.feedbackIntegration) is not a function The same is true for both repro blocks.

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions