Description
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
Dependencies:
"@sentry/vue": "8.7.0"
"nuxt": "3.11.2"
"h3": "1.11.1",
...
This is my Nuxt/Vue config inside plugins/sentry.ts
import * as Sentry from "@sentry/vue";
export default defineNuxtPlugin((nuxtApp) => {
const router = useRouter();
const {
public: { sentry },
} = useRuntimeConfig();
if (!sentry.dsnFront) {
return;
}
Sentry.init({
app: nuxtApp.vueApp,
dsn: sentry.dsnFront,
environment: sentry.environment,
enabled: true,
tracesSampleRate: 1.0,
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 0.25,
·
});
});
I run a single vue component
<template>
<button @click="triggerError">Error ?</button>
</template>
<script setup lang="ts">
const triggerError = () => {
throw new Error("Ceci est une erreur!");
};
</script>
Expected Result
It should capture the error and don't crash the app.
Actual Result
The app crashed with a 500 error (even if it happens on front-end side only)
Product Area
Unknown
Link
No response
DSN
No response
Version
No response
Metadata
Metadata
Assignees
Type
Projects
Status
No status