Bugsnag-js: Update @bugsnag/plugin-vue docs for Vue.js 3

Created on 21 Sep 2020  路  4Comments  路  Source: bugsnag/bugsnag-js

Describe the bug

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?

Steps to reproduce

  1. Create a new application using Vue.js 3
  2. Try to integrate Bugsnag with BugsnagPluginVue
  3. See there's no Vue constructor anymore

Environment

  • Bugsnag version: 7.3.5
  • Browser framework version (if any):

    • Vue: 3.0.0

backlog bug

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.

All 4 comments

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.

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

waynebloss picture waynebloss  路  3Comments

flrnt picture flrnt  路  6Comments

H2go picture H2go  路  5Comments

killia15 picture killia15  路  6Comments

darkyndy picture darkyndy  路  4Comments