-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TypeScript Compile Error] Property 'sessionManager' does not exist on type 'ITelemetryContext' #1526
Comments
This is correct For example, if you load this same Sku from a legacy snippet then the And as part of the tree-shaking improvements in the latest release the interfaces where better defined to identify these cases... Hence your current compile error. Additionally the So while in your specific case the sessionManager does (currently) exist, the only option would be to cast it and as the internal type or any
Notes for person fixing/addressing this issue
Alternative would be to expose a "helper" to fetch the current "id" as would be applied to the event, and therefore avoid people having to check and access both the
|
v2.7.0 is not fully deployed to NPM and all CDN endpoints |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description/Screenshot
appInsights.context.sessionManager.automaticSession.id
, typescript throws an error "Property 'sessionManager' does not exist on type 'ITelemetryContext'"Steps to Reproduce
appInsights.context.sessionManager
Expected behavior
Additional context
The text was updated successfully, but these errors were encountered: