You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@sentry/sveltekit gives me the error: "An error occurred on the client side: TypeError: Cannot read properties of undefined (reading 'getIntegrationById')" #8290
I'm also seeing this — I'm working in a monorepo using pnpm, I only have @sentry/sveltekit@^7.56.0 installed, and my lockfile says that is indeed the version that's installed everywhere. However it has some deps that are resolving to 7.48.0, namely @sentry/bundler-plugin-core@0.6.0 is pulling in @sentry/tracing@7.48.0, which in turn pulls in core, types, utils, all at 7.48.0. I can share my whole lockfile if that helps.
This is a prod-breaking issue for me that I only got when upgrading all my deps so some insight or further debugging steps would be wonderful.
Hi @alexbjorlig and @madeleineostoja, thanks for reporting this. We missed a crucial edge case here - namely the client being undefined. I opened #8381 to fix this.
Hey @Amy-B-Tradition please open a new issue if you're experiencing a problem. This one's quite old by now and we're changing some things within the SDK for our upcoming major.
Hey @Amy-B-Tradition please open a new issue if you're experiencing a problem. This one's quite old by now and we're changing some things within the SDK for our upcoming major.
I resolved the issue by storing the replay instance I created in Redux. Not the best solution, but since your documentation on how to get the replay instance from anywhere was incorrect it seemed the best choice. I've resolved the issue for myself, but other users may benefit if you fix your docs. Because I'm "on the clock" and the issue is resolved, I am not going to open an issue for you.
Activity
lforst commentedon Jun 6, 2023
Hey, can you check (in your lockfile) that all your sentry dependencies are on the same version? Thanks!
madeleineostoja commentedon Jun 22, 2023
I'm also seeing this — I'm working in a monorepo using
pnpm, I only have@sentry/sveltekit@^7.56.0installed, and my lockfile says that is indeed the version that's installed everywhere. However it has some deps that are resolving to7.48.0, namely@sentry/bundler-plugin-core@0.6.0is pulling in@sentry/tracing@7.48.0, which in turn pulls in core, types, utils, all at7.48.0. I can share my whole lockfile if that helps.This is a prod-breaking issue for me that I only got when upgrading all my deps so some insight or further debugging steps would be wonderful.
Lms24 commentedon Jun 22, 2023
Hi @alexbjorlig and @madeleineostoja, thanks for reporting this. We missed a crucial edge case here - namely the client being undefined. I opened #8381 to fix this.
fix(sveltekit): Only instrument SvelteKit `fetch` if the SDK client i…
Amy-B-Tradition commentedon Jan 25, 2024
Looking at the Javascript code, there doesn't even seem to be a getIntegrationById. Instead, there's a getIntegrationByName
Lms24 commentedon Jan 26, 2024
Hey @Amy-B-Tradition please open a new issue if you're experiencing a problem. This one's quite old by now and we're changing some things within the SDK for our upcoming major.
Amy-B-Tradition commentedon Jan 26, 2024
I resolved the issue by storing the replay instance I created in Redux. Not the best solution, but since your documentation on how to get the replay instance from anywhere was incorrect it seemed the best choice. I've resolved the issue for myself, but other users may benefit if you fix your docs. Because I'm "on the clock" and the issue is resolved, I am not going to open an issue for you.