getsentry / getsentry/sentry

TypeError: _sentry_nextjs__WEBPACK_IMPORTED_MODULE_0__.replayIntegration is not a function

Open
#83,497 5 comments 0 reactions 0 assignees View on GitHub
Explore > Replays Waiting for: Product Owner
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
22h 21m
Merged PRs (30d)
586

Description

### Environment

SaaS (https://sentry.io/)

### Steps to Reproduce

1. Follow the documentation to set up Sentry with Session Replay for Next.js.
2. Run your project.
3. An error will be thrown pointing to the following line of code inside sentry.client.config: **integrations: [Sentry.replayIntegration()],**

### Expected Result

No error is thrown.

### Actual Result

An error is returned stating that **TypeError: _sentry_nextjs__WEBPACK_IMPORTED_MODULE_0__.replayIntegration is not a function**, even though I have ensured that I am using the latest version of the Sentry SDK for Next.js

### Product Area

Replays

### Link

_No response_

### DSN

_No response_

### Version

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.