Vue.js 3 was released a few days ago and I'm trying to integrate Bugsnag into an application based on it. However, I'm not sure how to plug in BugsnagPluginVue. The documentation says that you can initialize the plugin this way:
Bugsnag.getPlugin('vue').installVueErrorHandler(Vue);
However, Vue.js 3 no longer uses Vue constructor to initialize the application. Instead, it uses createApp function. There's also no contructor being exported from vue module.
So my question is: What is the right way to initialize BugsnagPluginVue in Vue.js 3 application? And can you update the documentation?
BugsnagPluginVueVue constructor anymoreHi @livthomas
We need to make some changes to the Bugsnag plugin to accommodate the breaking changes in Vue 3:
https://v3.vuejs.org/guide/migration/global-api.html#global-api
We'll be releasing a new version of bugsnag-js which supports Vue 3 soon as well as updating the installation docs.
@mattdyoung I can see that a few minor versions of bugsnag-js have been released since I reported this issue. But nothing related to Vue.js has been changed. There are only React Native updates. When can we except a new version of bugsnag-js which supports Vue.js 3?
Any update on this? Thanks
This is very much on our radar and we're looking to address Vue 3 support in the near future. We'll need to consider how we maintain backwards compatibility with Vue 2 when we make the changes.
We have a number of competing priorities right now so it's likely to be a few weeks before this work gets underway.
Most helpful comment
Hi @livthomas
We need to make some changes to the Bugsnag plugin to accommodate the breaking changes in Vue 3:
https://v3.vuejs.org/guide/migration/global-api.html#global-api
We'll be releasing a new version of bugsnag-js which supports Vue 3 soon as well as updating the installation docs.