nuxt-community / sentry-module

Sentry module for Nuxt 2
https://sentry.nuxtjs.org
MIT License
500 stars 113 forks source link

Missing type to disable client integration #542

Closed davidsandoz closed 1 year ago

davidsandoz commented 1 year ago

Version

@nuxtjs/sentry: 7.1.9 nuxt: 2.15.8

Sentry configuration

  {
    dsn: '[redacted]',
    config: {
      release: '[redacted]@' + pkg.version
    },
    clientIntegrations: {
      ReportingObserver: false
    }
  }

Steps to reproduce

Disable ReportingObserver or I suppose any client integration in the Sentry config within nuxt.config.ts by setting it to false, like described in the documentation.

What is Expected?

No TypeScript error

What is actually happening?

false is not accepted as a value for clientIntegrations.ReportingObserver.

We get the following TypeScript error:

Type 'boolean' is not assignable to type 'Record<string, never> | { types?: ReportTypes[]; }
davidsandoz commented 1 year ago

Thank you @rchl!