-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationkeep
Description
Description/Screenshot
It seems that after the release of the @microsoft/applicationinsights-web v2.7.1
- apps with version v2.7.0
and TypeScript not working correctly anymore.
TS2322: Type 'ReactPlugin' is not assignable to type 'ITelemetryPlugin'.
Steps to Reproduce
Simple library with following deps:
"dependencies": {
"@microsoft/applicationinsights-react-js": "3.0.5",
"@microsoft/applicationinsights-web": "2.7.0",
"axios": "0.21.1",
"qs": "6.9.1",
"reflect-metadata": "0.1.13"
},
Initialize app:
this.pluginInstance = new ReactPlugin();
this.insightsInstance = new ApplicationInsights({
config: {
instrumentationKey,
disableFetchTracking: false,
enableRequestHeaderTracking: true,
enableResponseHeaderTracking: true,
extensions: [this.pluginInstance],
},
});
this.insightsInstance.loadAppInsights();
- OS/Browser: Windows
- SDK Version [e.g. 22]:
- How you initialized the SDK: NPM
Expected behavior
No breaking changes in typing between patches
of the library.
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationkeep