-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Next.js error TypeError: (0 , _sentry_nextjs__WEBPACK_IMPORTED_MODULE_11__.feedbackIntegration) is not a function
#15977
Comments
Hey @hbmartin thanks for writing in! I tried to reproduce this in a new NextJS app on 15.2.4 and couldn't get to the error. See my reproduction repo. Can you let me know what to change in this repro to reproduce the error? Otherwise, feel free to provide your own repro. thanks! |
Hi thanks for the response @Lms24
So perhaps the solve for this issue is better docs around that pattern? |
Ah I see. I'm not a 100% familiar with feedback but to me it seems odd to call However, if you call Anyway, calling
I guess you mean this, right? Agreed, this looks misleading. Also forwarded it to the team. |
Yes, I just now noticed that Next.js is mentioned in separate code tabs near the bottom of the docs 🙃 I proposed adding a callout near the top of the doc to make it more obvious: getsentry/sentry-docs#13242
Yes I did get that for feedbackIntegration. Although that just tripped me up with |
Sorry my mistake, I linked to the generic JS docs. There's a better example featuring a React/NextJS specific snippet in the Sentry NextJS docs. Added a comment to your PR as well. |
@hbmartin I'm updating the docs around this so hopefully it'll be clearer from the start for the next person: getsentry/sentry-docs#13247 I guess we wrote them with the idea that each example should just show the important bit related to that section, but it's better if each example is more stand-alone so people don't have to read everything in order to get things working. The result from Related to getsentry/sentry-docs#13242 we do actually have a NextJS specific example file here: https://github.com/getsentry/sentry-docs/blob/master/platform-includes/user-feedback/manual-injection/javascript.nextjs.mdx#L35 so I'll probably not merge that |
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:Steps to Reproduce
Either of these blocks:
OR
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.The text was updated successfully, but these errors were encountered: