Calling sentry methods should not trigger any errors, if DSN is empty (or if sentry is disabled for the environment),
this.$sentry should not be undefined, it should, instead, implement mock methods that don't really do anything
Sentry object is available on window, but not within the components. Calling
foo is one of the sentry methods, results in an error (cannot call 'foo' of undefined)
@nuxtjs/sentry is added as a nuxt module, then
this.$sentry should be available in the components regardless of the configuration as it's quite common to not define DSN for development / testing, or to use
disabled: true in the module for the development / testing environment. In this case,
this.$sentry should just be a mock object that just implements the methods but doesn't do anything with them.