Skip to content

Attempted import error: 'sendFeedback' is not exported from '@sentry/nextjs' (imported as 'sendFeedback') #11566

Closed
@ishaangandhi

Description

@ishaangandhi

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

7.109.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup


Sentry.init({
  dsn: "https://___@___.ingest.us.sentry.io/___",

  // 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,

});

Steps to Reproduce

  1. Used import { sendFeedback } from "@sentry/nextjs"; in a client component
  2. Navigated to a page that rendered that component

Expected Result

No errors/warnings

Actual Result

I got this in the server log:

Import trace for requested module:
./lib/api/feedback.ts
./components/shared/help-button.tsx
 ⚠ ./lib/api/feedback.ts
Attempted import error: 'sendFeedback' is not exported from '@sentry/nextjs' (imported as 'sendFeedback').

Notably, the code does work, and the imported function can be called successfully.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions