Hello ! Thank you for the nice module
An error occurs when trying to invoke a method on an instance
Notifications are sent to sentry when an error occurs.
@ sentry / browser module' method can not be used because it can not be sent with user information etc., I am in trouble
Would you please help me?
Thank you
(example)
this.$sentry.setUserContext({{
id: 1,
username: 'test',
email: '[email protected]'
}})
this.$sentry.captureException(new Error('error test'))
Exception
TypeError: this.$sentry.setUserContext is not a function
at VueComponent.mounted (/_nuxt/pages/product/_id.js:1740:18)
at callHook (/_nuxt/commons.app.js:13354:21)
at Object.insert (/_nuxt/commons.app.js:14587:7)
at invokeInsertHook (/_nuxt/commons.app.js:16382:28)
at Vue.patch [as patch] (/_nuxt/commons.app.js:16530:15)
...
(13 additional frame(s) were not displayed)
Exception
TypeError: Cannot read property 'captureException' of undefined
at VueComponent.mounted (/_nuxt/pages/product/_id.fa1f7c3d171eb5ab5250.hot-update.js:160:17)
at callHook (/_nuxt/commons.app.js:13354:21)
at insert (/_nuxt/commons.app.js:14587:7)
at Object.invoker [as insert] (/_nuxt/commons.app.js:12456:19)
at invokeInsertHook (/_nuxt/commons.app.js:16382:28)
...
(8 additional frame(s) were not displayed)
package.json
"@nuxtjs/sentry": "^2.0.0",
"nuxt": "^2.2.0",
nuxt.config.js
This question is available on Nuxt community (#c30)