Skip to content
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

Module '"@sentry/remix"' has no exported member 'Replay' #6705

Closed
3 tasks done
robin-siegl opened this issue Jan 10, 2023 · 1 comment · Fixed by #6715
Closed
3 tasks done

Module '"@sentry/remix"' has no exported member 'Replay' #6705

robin-siegl opened this issue Jan 10, 2023 · 1 comment · Fixed by #6715

Comments

@robin-siegl
Copy link

robin-siegl commented Jan 10, 2023

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/remix

SDK Version

7.29.0

Framework Version

No response

Link to Sentry event

No response

Steps to Reproduce

import * as Sentry from "@sentry/remix";

Sentry.init({
  dsn: "DSN",

  // This sets the sample rate to be 10%. You may want this to be 100% while
  // in development and sample at a lower rate in production
  replaysSessionSampleRate: 0.1,
  // If the entire session is not sampled, use the below sample rate to sample
  // sessions when an error occurs.
  replaysOnErrorSampleRate: 1.0,

  integrations: [new Sentry.Replay()],
});

Expected Result

Should probably be the same as in this commit:
6a275c0

Actual Result

Property 'Replay' does not exist on type 'typeof import("/node_modules/.pnpm/@sentry+remix@7.29.0_ctfx57c45d4ft2ci2cukzxaxxu/node_modules/@sentry/remix/types/index.server")

TS error, could not find Replay.
TS tries to get types from index.server.ts, TS doesn't find the Replay integration class although it's correctly exported from indext.client.ts

@lforst
Copy link
Member

lforst commented Jan 10, 2023

Hi, thanks for pointing this out. A fix is on its way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants