-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add Replay integration into Nuxt SDK #13686
Comments
Hi @wanderowski, could you please paste your config just for double-checking? |
Hi @chargome Yep, here it is:
|
@wanderowski Also I assume the config you provided is EDIT: you might not be running replay in a browser context - please double check that your setup matches https://docs.sentry.io/platforms/javascript/guides/nuxt/ |
@chargome Thank you for the tip, removed Yes, the config I provided is sentry.client.config.ts located in the root folder. I double-checked the manual and it is the same as in my project. I guess, the problem could be in the fact that we use Nuxt layers. This config file is located in one of the projects inside a monorepo. However, the sentry module itself is installed globally for the whole workspace, not for the project. Let me check on that. |
I'm missing a bit of nuxt context tbh but that could potentially be the issue yes. Additionally you could provide your folder/config structure and maybe add the |
@chargome I found a solution. Unfortunately, I misspelt the config key. It should be P.S. I'll close the issue, since it was resolved |
Problem Statement
In the current Nuxt SDK, the replay functionality is not present. If you put Sentry.replayIntegration into sentry.client.config.ts, it will produce a warning in the console saying: "sentry.client.config.ts:9 Replay is disabled because neither
replaysSessionSampleRate
norreplaysOnErrorSampleRate
are set.", even though these parameters are set in the config file.Also, Typescript warns that these parameters do not exist.
I don't know if this is a bug, so I posted it as a feature request.
Thank you for all the work you are doing!
Solution Brainstorm
According to the replay docs, we should "import Sentry from your framework SDK (e.g. @sentry/react) instead of @sentry/browser". Probably, it should be added in the current Nuxt SDK.
The text was updated successfully, but these errors were encountered: