Application insights in Vuejs

How to create Application insights for handling exceptions and failures and browser error on vue component

I have used the following but its not tracking exceptions

import Vue from ‘vue’
import VueAppInsights from ‘vue-application-insights’

Vue.use(VueAppInsights, {

id: ‘XXXXXXXX–XXXX-XXXX-XXXXXXXXXXXX’

})