-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
getsentry/sentry-docs
#13247Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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.
Lms24
Metadata
Metadata
Assignees
Projects
Status
No status