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

Release @sentry/integrations v8 #12008

Closed
3 tasks done
simPod opened this issue May 13, 2024 · 1 comment
Closed
3 tasks done

Release @sentry/integrations v8 #12008

simPod opened this issue May 13, 2024 · 1 comment

Comments

@simPod
Copy link

simPod commented May 13, 2024

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which SDK are you using?

@sentry/nextjs

SDK Version

8.0.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup

import { captureConsoleIntegration } from '@sentry/integrations';
import * as Sentry from '@sentry/nextjs';

const SentryDsn = process.env.NEXT_PUBLIC_SENTRY_DSN ?? '';
if (SentryDsn !== '') {
  Sentry.init({
    dsn: SentryDsn,
    environment: process.env.NEXT_PUBLIC_ENVIRONMENT,
    integrations: [captureConsoleIntegration({ levels: ['assert', 'error', 'warn'] })],
    release: process.env.NEXT_PUBLIC_RELEASE,
    sendDefaultPii: true,
    tracesSampleRate: 0.1,
  });
}

Steps to Reproduce

I'm using yarn pnp. Build.

Expected Result

no errors. 7.114.0 works fine

Actual Result

Seems like @sentry/integrations v8 is not released.

sentry.config.ts(9,20): error TS2322: Type 'IntegrationFnResult' is not assignable to type 'Integration'.
  Types of property 'setup' are incompatible.
    Type '((client: import("/builds/build-cache/yarn/cache/@sentry-types-npm-7.114.0-9b13ed9941-10c0.zip/node_modules/@sentry/types/types/client").Client<import("/builds/build-cache/yarn/cache/@sentry-types-npm-7.114.0-9b13ed9941-10c0.zip/node_modules/@sentry/types/types/options").ClientOptions<import("/builds/build-cache/yar...' is not assignable to type '((client: import("/builds/build-cache/yarn/cache/@sentry-types-npm-8.0.0-bb8976606b-10c0.zip/node_modules/@sentry/types/types/client").Client<import("/builds/build-cache/yarn/cache/@sentry-types-npm-8.0.0-bb8976606b-10c0.zip/node_modules/@sentry/types/types/options").ClientOptions<import("/builds/build-cache/yarn/ca...'.
      Type '(client: import("/builds/build-cache/yarn/cache/@sentry-types-npm-7.114.0-9b13ed9941-10c0.zip/node_modules/@sentry/types/types/client").Client<import("/builds/build-cache/yarn/cache/@sentry-types-npm-7.114.0-9b13ed9941-10c0.zip/node_modules/@sentry/types/types/options").ClientOptions<import("/builds/build-cache/yarn...' is not assignable to type '(client: import("/builds/build-cache/yarn/cache/@sentry-types-npm-8.0.0-bb8976606b-10c0.zip/node_modules/@sentry/types/types/client").Client<import("/builds/build-cache/yarn/cache/@sentry-types-npm-8.0.0-bb8976606b-10c0.zip/node_modules/@sentry/types/types/options").ClientOptions<import("/builds/build-cache/yarn/cac...'.
        Types of parameters 'client' and 'client' are incompatible.
          Type 'Client<ClientOptions<BaseTransportOptions>>' is missing the following properties from type 'Client<ClientOptions<BaseTransportOptions>>': getIntegration, setupIntegrations
@HazAT
Copy link
Member

HazAT commented May 13, 2024

You don't need this package anymore, remove the import
import { captureConsoleIntegration } from '@sentry/integrations'; and change this line to

integrations: [Sentry.captureConsoleIntegration({ levels: ['assert', 'error', 'warn'] })],

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

No branches or pull requests

3 participants