Skip to content

Missing type to disable client integration #542

@davidsandoz

Description

@davidsandoz

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[]; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions