-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
A type error similar to issue microsoft/ApplicationInsights-JS#1324 has appeared in the latest versions:
Type 'ReactPlugin' is not assignable to type 'ITelemetryPlugin'.
Versions:
- @microsoft/applicationinsights-react-js v3.4.0
- @microsoft/applicationinsights-web v2.8.9
Here's the simplified example from my next.js app:
import { ReactPlugin } from '@microsoft/applicationinsights-react-js';
import {
ApplicationInsights,
ITelemetryPlugin,
} from '@microsoft/applicationinsights-web';
const appInsights = new ApplicationInsights({
config: {
connectionString: `InstrumentationKey=${process.env.AZURE_INSTURMENTATION_KEY};IngestionEndpoint=https://switzerlandnorth-0.in.applicationinsights.azure.com/;LiveEndpoint=https://switzerlandnorth.livediagnostics.monitor.azure.com/`,
enableAutoRouteTracking: true,
extensions: [new ReactPlugin()], // <- error happens here
},
});fleed, owieth, afonsojramos, noynek, rwb196884 and 9 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working