Skip to content

[BUG] Type 'ReactPlugin' is not assignable to type 'ITelemetryPlugin' #95

@edwiles

Description

@edwiles

Description/Screenshot

With these versions:

@microsoft/applicationinsights-react-js v17.1.2
@microsoft/applicationinsights-web v3.2.0

I am getting the error:

Type 'ReactPlugin' is not assignable to type 'ITelemetryPlugin'.

Similar to #32 but for newer versions.

Steps to Reproduce

Sample code:

import { ApplicationInsights } from '@microsoft/applicationinsights-web'
import { ReactPlugin } from '@microsoft/applicationinsights-react-js'

const reactPlugin = new ReactPlugin()
const applicationInsights = new ApplicationInsights({
  config: {
    extensions: [reactPlugin]
  }
})

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions