Skip to content
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

Add basic support for Vue 3 #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ruffythepirate
Copy link

Because Vue 3 now sends in an object and not a function when setting up a plugin, there is an error thrown from using the .prototype call in the install function. This PR identifies if Vue 3 is being used, and if that is the case it uses Vue.provide('appInsights'... to make appInsights available to other parts of the application.

@@ -1,6 +1,10 @@

import { ApplicationInsights, Util } from '@microsoft/applicationinsights-web'

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Util.generateW3CId() got removed in v2.6.0.
Add import { generateW3CId } from '@microsoft/applicationinsights-core-js' instead.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have created a separate PR for this as it does not relate to the Vue 3 compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants