-
Notifications
You must be signed in to change notification settings - Fork 255
Description
Description/Screenshot
Type 'ReactNativePlugin' is not assignable to type 'ITelemetryPlugin'.
Types of property 'setNextPlugin' are incompatible.
Type '(next: ITelemetryPlugin) => void' is not assignable to type '(next: ITelemetryPlugin | ITelemetryPluginChain) => void'.
Types of parameters 'next' and 'next' are incompatible.
Type 'ITelemetryPlugin | ITelemetryPluginChain' is not assignable to type 'ITelemetryPlugin'.
Type 'ITelemetryPluginChain' is missing the following properties from type 'ITelemetryPlugin': priority, initialize, identifier
Steps to Reproduce
When I add the latest versions of applicationinsights-react-native and applicationinsights-web, I get the above error while trying to create a new instance of ApplicationInsights().
ReactNativePlugin is not accepted as a valid value for extensions array.
yarn add @microsoft/applicationinsights-react-native
yarn add @microsoft/applicationinsights-web
Versions installed are,
"@microsoft/applicationinsights-react-native": "^2.2.5",
"@microsoft/applicationinsights-web": "^2.5.6",
- OS/Browser:
- SDK Version [e.g. 22]:
- How you initialized the SDK:
Expected behavior
Additional context
Add any other context about the problem here.