Skip to content

.getReplay() doesn't work, have to getIntegrationByName('Replay') - docs outdated? #13879

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

Closed
3 tasks done
kkmuffme opened this issue Oct 6, 2024 · 2 comments · Fixed by #13881
Closed
3 tasks done
Labels
Package: browser Issues related to the Sentry Browser SDK

Comments

@kkmuffme
Copy link

kkmuffme commented Oct 6, 2024

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://docs.sentry.io/platforms/javascript/session-replay/understanding-sessions/#manually-starting-replay

Sentry.getReplay() doesn't work.
I have to
Sentry.getClient().getIntegrationByName('Replay')

Are the docs outdated?

Steps to Reproduce

Sentry.getReplay() doesn't work.
I have to
Sentry.getClient().getIntegrationByName('Replay')

Expected Result

code in docs should work

Actual Result

Uncaught TypeError: Sentry.getReplay is not a function

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Oct 6, 2024
@github-actions github-actions bot added the Package: browser Issues related to the Sentry Browser SDK label Oct 6, 2024
@mydea
Copy link
Member

mydea commented Oct 7, 2024

Are you by chance using the CDN bundle/loader script? It seems we do not have this exported there, I will update this to make sure it is available there as well!

Copy link
Contributor

A PR closing this issue has just been released 🚀

This issue was referenced by PR #13881, which was included in the 8.34.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: browser Issues related to the Sentry Browser SDK
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants