Ionic Vue Integration

I am trying to follow this integration doc: https://docs.sentry.io/platforms/javascript/ionic/

Sentry works when accessing localhost in a web view after calling just sentry.init, however it does not natively.

I think this is due to this section of the docs:

’ Do not run ionic cordova plugin add sentry-cordova . The ionic cli wrapper sucks up all the input and sentry-wizard will not be able to setup your project.’

In this guide, we are told:

‘After that it’s important to run cordova plugin add sentry-cordova without the ionic wrapper.’

However as Ionic V4 Vue is using Capacitor, to install a cordova plugin we are told to use NPM Install which I think by default will wrap it in the ionic wrapper: https://capacitor.ionicframework.com/docs/cordova/using-cordova-plugins/

Has anyone used Ionic Vue with Sentry?

1 Like

Did you ever get this working? I am trying to integrate Sentry into my Ionic-Vue project now and having trouble since it seems to be Ionic-Angular focused. I did see a Sentry/Capacitor version which seems newer but still Angular focused. :frowning:

I’m having a similar issue - despite adding it to my mainactivity & initializing properly no messages are coming through, I think it’s because we’re using Vue - just thought I’d check to see if this is supported or if you’d made any progress with this.