Restore native Vue.use() in Vue 3
What does this MR do and why?
We attempted adding Vue.use() to our compatibility layer but this broke our toast (and possible other plugins).
Internally, GlToast was not able to locate this.$bvToast so it failed.
References
Screenshots or screen recordings
mounted() {
this.$toast.show('A toast!')
},
| Local test |
|---|
|
How to set up and validate locally
- Use Vue 3:
gdk config set vite.vue_version 3 && gdk reconfigure && gdk restart vite - Try to make a toast appear.
- Check the console, there is an error
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Miguel Rincon
