Skip to content

Fix : Vue3 Compatibility issue - Vue.prototype #44

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

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

Fix : Vue3 Compatibility issue - Vue.prototype #44

wants to merge 1 commit into from

Conversation

gXiah
Copy link

@gXiah gXiah commented Jan 26, 2021

Fixed the following :
Installing the vuejs-logger plugin using app.use(VueLogger, options) does not work.
The error is TypeError: Vue.prototype is undefined
Stacktrace extract : vue-logger.js:20

@Glandos
Copy link

Glandos commented Jan 31, 2022

But, this breaks Vue 2.

@gXiah
Copy link
Author

gXiah commented Jan 31, 2022

@Glandos Adding a condition on the version of Vue might be a solution

By using Vue.version

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.

2 participants